diff options
author | Lubomir Rintel <lkundrak@v3.sk> | 2022-08-05 17:03:15 +0200 |
---|---|---|
committer | Lubomir Rintel <lkundrak@v3.sk> | 2022-08-05 17:47:55 +0200 |
commit | 7881904eda6a7cd2af7d9670d56bed026d86b5bc (patch) | |
tree | 62afa35934e341536be25f7b219c5251825ac65f /src/libnm-platform/nm-linux-platform.c | |
parent | 3ce34510402517dfdffb8fc541c97ff8a457f0b9 (diff) | |
download | NetworkManager-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-platform/nm-linux-platform.c')
-rw-r--r-- | src/libnm-platform/nm-linux-platform.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libnm-platform/nm-linux-platform.c b/src/libnm-platform/nm-linux-platform.c index ee5cb10434..6fc3d02e12 100644 --- a/src/libnm-platform/nm-linux-platform.c +++ b/src/libnm-platform/nm-linux-platform.c @@ -10026,7 +10026,7 @@ handle_udev_event(NMUdevClient *udev_client, struct udev_device *udevice, gpoint if (NM_IN_STRSET(action, "add", "move")) udev_device_added(platform, udevice); - else if (NM_IN_STRSET(action, "remove")) + else if (nm_streq(action, "remove")) udev_device_removed(platform, udevice); } |