[PATCH 05/14] haier,udev: simplify single vendor check

Aleksander Morgado aleksander at aleksander.es
Wed Jul 27 22:13:59 UTC 2016


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

diff --git a/plugins/haier/77-mm-haier-port-types.rules b/plugins/haier/77-mm-haier-port-types.rules
index 1a1ed80..41db317 100644
--- a/plugins/haier/77-mm-haier-port-types.rules
+++ b/plugins/haier/77-mm-haier-port-types.rules
@@ -1,12 +1,9 @@
 # do not edit this file, it will be overwritten on update
 
 ACTION!="add|change|move", GOTO="mm_haier_port_types_end"
+SUBSYSTEMS!="usb", GOTO="mm_haier_port_types_end"
 SUBSYSTEM!="tty", GOTO="mm_haier_port_types_end"
-
-SUBSYSTEMS=="usb", ATTRS{idVendor}=="201e", GOTO="mm_haier_port_types_vendorcheck"
-GOTO="mm_haier_port_types_end"
-
-LABEL="mm_haier_port_types_vendorcheck"
+ATTRS{idVendor}!="201e", GOTO="mm_haier_port_types_end"
 
 # Haier CE81B
 ATTRS{idVendor}=="201e", ATTRS{idProduct}=="10f8", ATTRS{bInterfaceNumber}=="03", ENV{ID_MM_HAIER_PORT_TYPE_MODEM}="1"
-- 
2.9.0



More information about the ModemManager-devel mailing list