diff options
author | Nicolas Kaiser <nikai@nikai.net> | 2010-10-26 11:47:52 -0400 |
---|---|---|
committer | Roland Dreier <roland@purestorage.com> | 2011-03-14 17:25:59 -0400 |
commit | 2a543904ddcb463db9d56d1efcb2f80884ea55f3 (patch) | |
tree | 57cdb9098e4299cc47bb21e8061b671b24d70219 /drivers/infiniband/hw | |
parent | a5bbef0b2deb7b943f095181309ecc9e1fc91c0f (diff) |
IB/ipath: Don't reset disabled devices
The comment some lines above states that disabled devices must not reset.
Signed-off-by: Nicolas Kaiser <nikai@nikai.net>
Diffstat (limited to 'drivers/infiniband/hw')
-rw-r--r-- | drivers/infiniband/hw/ipath/ipath_sysfs.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/ipath/ipath_sysfs.c b/drivers/infiniband/hw/ipath/ipath_sysfs.c index b8cb2f145ae4..8991677e9a08 100644 --- a/drivers/infiniband/hw/ipath/ipath_sysfs.c +++ b/drivers/infiniband/hw/ipath/ipath_sysfs.c | |||
@@ -557,6 +557,7 @@ static ssize_t store_reset(struct device *dev, | |||
557 | dev_info(dev,"Unit %d is disabled, can't reset\n", | 557 | dev_info(dev,"Unit %d is disabled, can't reset\n", |
558 | dd->ipath_unit); | 558 | dd->ipath_unit); |
559 | ret = -EINVAL; | 559 | ret = -EINVAL; |
560 | goto bail; | ||
560 | } | 561 | } |
561 | ret = ipath_reset_device(dd->ipath_unit); | 562 | ret = ipath_reset_device(dd->ipath_unit); |
562 | bail: | 563 | bail: |