[PATCH 12/14] simtech,udev: simplify single vendor check

Aleksander Morgado aleksander at aleksander.es
Wed Jul 27 22:14:06 UTC 2016


---
 plugins/simtech/77-mm-simtech-port-types.rules | 9 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)

diff --git a/plugins/simtech/77-mm-simtech-port-types.rules b/plugins/simtech/77-mm-simtech-port-types.rules
index 9956b80..a13d2c1 100644
--- a/plugins/simtech/77-mm-simtech-port-types.rules
+++ b/plugins/simtech/77-mm-simtech-port-types.rules
@@ -11,12 +11,9 @@
 
 
 ACTION!="add|change|move", GOTO="mm_simtech_port_types_end"
+SUBSYSTEMS!="usb", GOTO="mm_simtech_port_types_end"
 SUBSYSTEM!="tty", GOTO="mm_simtech_port_types_end"
-
-SUBSYSTEMS=="usb", ATTRS{idVendor}=="1e0e", GOTO="mm_alink_vendorcheck"
-GOTO="mm_simtech_port_types_end"
-
-LABEL="mm_alink_vendorcheck"
+ATTRS{idVendor}!="1e0e", GOTO="mm_simtech_port_types_end"
 
 # A-LINK 3GU
 ATTRS{idVendor}=="1e0e", ATTRS{idProduct}=="cefe", ATTRS{bInterfaceNumber}=="02", ENV{ID_MM_SIMTECH_PORT_TYPE_MODEM}="1"
@@ -34,6 +31,4 @@ ATTRS{idVendor}=="1e0e", ATTRS{idProduct}=="9200", ATTRS{bInterfaceNumber}=="03"
 ATTRS{idVendor}=="1e0e", ATTRS{idProduct}=="9200", ATTRS{bInterfaceNumber}=="01", ENV{ID_MM_SIMTECH_PORT_TYPE_AUX}="1"
 ATTRS{idVendor}=="1e0e", ATTRS{idProduct}=="9200", ENV{ID_MM_SIMTECH_TAGGED}="1"
 
-GOTO="mm_simtech_port_types_end"
-
 LABEL="mm_simtech_port_types_end"
-- 
2.9.0



More information about the ModemManager-devel mailing list