From a537eafe1d30d523e5509f40f9abd1e57c7b25fe Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Fri, 19 Oct 2018 11:57:29 +0900 Subject: [PATCH] sd-device-monitor: drop unnecessary condition --- src/libsystemd/sd-device/device-monitor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libsystemd/sd-device/device-monitor.c b/src/libsystemd/sd-device/device-monitor.c index b823d860a87..82e01d44f28 100644 --- a/src/libsystemd/sd-device/device-monitor.c +++ b/src/libsystemd/sd-device/device-monitor.c @@ -523,7 +523,7 @@ int device_monitor_send_device( return log_debug_errno(r, "Failed to get device subsystem: %m"); nlh.filter_subsystem_hash = htobe32(string_hash32(val)); - if (sd_device_get_devtype(device, &val) >= 0 && val) + if (sd_device_get_devtype(device, &val) >= 0) nlh.filter_devtype_hash = htobe32(string_hash32(val)); /* add tag bloom filter */ -- 2.47.3