sd-device-monitor: drop unnecessary condition

This commit is contained in:
Yu Watanabe
2018-10-19 11:57:29 +09:00
parent a87b1faad3
commit a537eafe1d
+1 -1
View 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 */