udev: remove extraneous subsystem check

The enumeration construct is already set up with matches for these
subsystems.
This commit is contained in:
Jonas Bonn 2017-03-25 17:58:00 +01:00 committed by Denis Kenzior
parent 8c30bcf576
commit 36be849043
1 changed files with 1 additions and 8 deletions

View File

@ -292,14 +292,7 @@ static void enumerate_devices(struct udev *context)
device = udev_device_new_from_syspath(context, syspath);
if (device != NULL) {
const char *subsystem;
subsystem = udev_device_get_subsystem(device);
if (g_strcmp0(subsystem, "tty") == 0 ||
g_strcmp0(subsystem, "net") == 0 ||
g_strcmp0(subsystem, "hsi") == 0)
add_modem(device);
add_modem(device);
udev_device_unref(device);
}