From: Yu Watanabe Date: Fri, 19 Oct 2018 02:57:29 +0000 (+0900) Subject: sd-device-monitor: drop unnecessary condition X-Git-Tag: v240~505^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a537eafe1d30d523e5509f40f9abd1e57c7b25fe;p=thirdparty%2Fsystemd.git sd-device-monitor: drop unnecessary condition --- 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 */