mirror of git://git.sysmocom.de/ofono
udev: remove extraneous subsystem check
The enumeration construct is already set up with matches for these subsystems.
This commit is contained in:
parent
8c30bcf576
commit
36be849043
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue