multipath tests: blacklist: remove always-true condition
authorMartin Wilck <mwilck@suse.com>
Sat, 12 Oct 2019 21:28:53 +0000 (21:28 +0000)
committerChristophe Varoqui <christophe.varoqui@opensvc.com>
Mon, 2 Mar 2020 08:19:47 +0000 (09:19 +0100)
clang warns about this (udev_device->property_list can't be NULL).

Signed-off-by: Martin Wilck <mwilck@suse.com>
tests/blacklist.c

index 733ee39..6e7c186 100644 (file)
@@ -40,8 +40,6 @@ struct udev_list_entry *
 __wrap_udev_device_get_properties_list_entry(struct udev_device *udev_device)
 {
        assert_non_null(udev_device);
-       if (!udev_device->property_list)
-               return NULL;
        if (!*udev_device->property_list)
                return NULL;
        return (struct udev_list_entry *)udev_device->property_list;