[dm-devel] [PATCH 61/72] multipath tests: blacklist: remove always-true condition
Martin Wilck
Martin.Wilck at suse.com
Sat Oct 12 21:28:53 UTC 2019
From: Martin Wilck <mwilck at suse.com>
clang warns about this (udev_device->property_list can't be NULL).
Signed-off-by: Martin Wilck <mwilck at suse.com>
---
tests/blacklist.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/tests/blacklist.c b/tests/blacklist.c
index 733ee398..6e7c1864 100644
--- a/tests/blacklist.c
+++ b/tests/blacklist.c
@@ -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;
--
2.23.0
More information about the dm-devel
mailing list