[PATCH 11/14] nokia,udev: simplify single vendor check
Aleksander Morgado
aleksander at aleksander.es
Wed Jul 27 22:14:05 UTC 2016
---
plugins/nokia/77-mm-nokia-port-types.rules | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/plugins/nokia/77-mm-nokia-port-types.rules b/plugins/nokia/77-mm-nokia-port-types.rules
index 4c5340f..e9b594f 100644
--- a/plugins/nokia/77-mm-nokia-port-types.rules
+++ b/plugins/nokia/77-mm-nokia-port-types.rules
@@ -1,12 +1,9 @@
# do not edit this file, it will be overwritten on update
ACTION!="add|change|move", GOTO="mm_nokia_port_types_end"
+SUBSYSTEMS!="usb", GOTO="mm_nokia_port_types_end"
SUBSYSTEM!="tty", GOTO="mm_nokia_port_types_end"
-
-SUBSYSTEMS=="usb", ATTRS{idVendor}=="0421", GOTO="mm_nokia_port_types_vendorcheck"
-GOTO="mm_nokia_port_types_end"
-
-LABEL="mm_nokia_port_types_vendorcheck"
+ATTRS{idVendor}!="0421", GOTO="mm_nokia_port_types_end"
# For Nokia Internet Sticks (CS-xx) the modem/PPP port appears to always be USB interface 1
--
2.9.0
More information about the ModemManager-devel
mailing list