[dts] [PATCH] nics/net_device: fix a typo

Rami Rosen ramirose at gmail.com
Tue Jan 1 13:49:40 CET 2019


This patch fixes a typo in nics/net_device.

Signed-off-by: Rami Rosen <ramirose at gmail.com>
---
 nics/net_device.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/nics/net_device.py b/nics/net_device.py
index 4861145..03d96a3 100644
--- a/nics/net_device.py
+++ b/nics/net_device.py
@@ -848,12 +848,12 @@ def get_pci_id(crb, domain_id, bus_id, devfun_id):
     command = ('cat /sys/bus/pci/devices/%s\:%s\:%s/vendor' %
                (domain_id, bus_id, devfun_id))
     out = crb.send_expect(command, "# ")
-    vender = out[2:]
+    vendor = out[2:]
     command = ('cat /sys/bus/pci/devices/%s\:%s\:%s/device' %
                (domain_id, bus_id, devfun_id))
     out = crb.send_expect(command, '# ')
     device = out[2:]
-    return "%s:%s" % (vender, device)
+    return "%s:%s" % (vendor, device)
 
 
 def add_to_list(host, obj):
-- 
1.8.3.1



More information about the dts mailing list