Commit 2a543904 authored by Nicolas Kaiser's avatar Nicolas Kaiser Committed by Roland Dreier

IB/ipath: Don't reset disabled devices

The comment some lines above states that disabled devices must not reset.
Signed-off-by: default avatarNicolas Kaiser <nikai@nikai.net>
parent a5bbef0b
...@@ -557,6 +557,7 @@ static ssize_t store_reset(struct device *dev, ...@@ -557,6 +557,7 @@ static ssize_t store_reset(struct device *dev,
dev_info(dev,"Unit %d is disabled, can't reset\n", dev_info(dev,"Unit %d is disabled, can't reset\n",
dd->ipath_unit); dd->ipath_unit);
ret = -EINVAL; ret = -EINVAL;
goto bail;
} }
ret = ipath_reset_device(dd->ipath_unit); ret = ipath_reset_device(dd->ipath_unit);
bail: bail:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment