sd-device-monitor: drop unnecessary condition
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user