]> git.droids-corp.org - dpdk.git/blobdiff - usertools/dpdk-devbind.py
usertools: fix binding device match
[dpdk.git] / usertools / dpdk-devbind.py
index 2d99e9d8270209732a92ca129d3f94b1f7cf5a76..79e7e8938ca1a1e233a65df2dabeb0b3573c5de3 100755 (executable)
@@ -354,8 +354,7 @@ def device_type_match(dev, devices_type):
             # count must be the number of non None parameters to match
             if match_count == param_count:
                 return True
             # count must be the number of non None parameters to match
             if match_count == param_count:
                 return True
-            else:
-                return False
+    return False
 
 def dev_id_from_dev_name(dev_name):
     '''Take a device "name" - a string passed in by user to identify a NIC
 
 def dev_id_from_dev_name(dev_name):
     '''Take a device "name" - a string passed in by user to identify a NIC