summaryrefslogtreecommitdiff
path: root/src/libnm-core-impl/nm-setting-connection.c
diff options
context:
space:
mode:
authorLubomir Rintel <lkundrak@v3.sk>2022-08-05 17:03:15 +0200
committerLubomir Rintel <lkundrak@v3.sk>2022-08-05 17:47:55 +0200
commit7881904eda6a7cd2af7d9670d56bed026d86b5bc (patch)
tree62afa35934e341536be25f7b219c5251825ac65f /src/libnm-core-impl/nm-setting-connection.c
parent3ce34510402517dfdffb8fc541c97ff8a457f0b9 (diff)
downloadNetworkManager-lr/strset.tar.gz
all: avoid useless use of NM_IN_STRSET()lr/strset
Sometimes NM_IN_STRSET() is used for comparing two strings. This hampers readability, making it look like the argument, if it's a macro, expands to multiple values. Other than that it's just odd and useless.
Diffstat (limited to 'src/libnm-core-impl/nm-setting-connection.c')
-rw-r--r--src/libnm-core-impl/nm-setting-connection.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libnm-core-impl/nm-setting-connection.c b/src/libnm-core-impl/nm-setting-connection.c
index 987c4fa041..1d126016d5 100644
--- a/src/libnm-core-impl/nm-setting-connection.c
+++ b/src/libnm-core-impl/nm-setting-connection.c
@@ -1258,7 +1258,7 @@ verify(NMSetting *setting, NMConnection *connection, GError **error)
if (connection)
goto after_interface_name;
iface_type = NMU_IFACE_ANY;
- } else if (NM_IN_STRSET(ovs_iface_type, "patch")) {
+ } else if (nm_streq(ovs_iface_type, "patch")) {
/* this interface type is internal to OVS. */
iface_type = NMU_IFACE_OVS;
} else {