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:
Jeff Shaw 2016-02-08 16:33:46 -08:00 committed by Thomas Monjalon
parent e45ae7065e
commit da82ee17e6

View File

@ -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()