]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
sd-device-monitor: drop unnecessary condition
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 19 Oct 2018 02:57:29 +0000 (11:57 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 19 Oct 2018 02:57:29 +0000 (11:57 +0900)
src/libsystemd/sd-device/device-monitor.c

index b823d860a87222f6a75690cfafaf5e4fa141427f..82e01d44f28f51ccd5046fdbddc310c8cf9967ce 100644 (file)
@@ -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 */