tools: fix unbinding failure handling
We should call sys.exit(), not divide sys by exit(). Signed-off-by: Jeff Shaw <jeffrey.b.shaw@intel.com> Acked-by: Bruce Richardson <bruce.richardson@intel.com>
This commit is contained in:
parent
e45ae7065e
commit
da82ee17e6
@ -317,7 +317,7 @@ def unbind_one(dev_id, force):
|
||||
f = open(filename, "a")
|
||||
except:
|
||||
print "Error: unbind failed for %s - Cannot open %s" % (dev_id, filename)
|
||||
sys/exit(1)
|
||||
sys.exit(1)
|
||||
f.write(dev_id)
|
||||
f.close()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user