test: replace a strcmp with streq

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer 2018-04-18 10:52:32 +10:00
parent 358acb5747
commit fb8a5b040a

View file

@ -2792,7 +2792,7 @@ litest_create_uinput_device_from_description(const char *name,
udev_device = udev_monitor_receive_device(udev_monitor);
litest_assert_notnull(udev_device);
udev_action = udev_device_get_action(udev_device);
if (strcmp(udev_action, "add") != 0) {
if (!streq(udev_action, "add")) {
udev_device_unref(udev_device);
continue;
}