Skip to content

Commit

Permalink
IB/ipath: Don't reset disabled devices
Browse files Browse the repository at this point in the history
The comment some lines above states that disabled devices must not reset.

Signed-off-by: Nicolas Kaiser <[email protected]>
  • Loading branch information
nikai3d authored and rolandd committed Mar 14, 2011
1 parent a5bbef0 commit 2a54390
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/infiniband/hw/ipath/ipath_sysfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -557,6 +557,7 @@ static ssize_t store_reset(struct device *dev,
dev_info(dev,"Unit %d is disabled, can't reset\n",
dd->ipath_unit);
ret = -EINVAL;
goto bail;
}
ret = ipath_reset_device(dd->ipath_unit);
bail:
Expand Down

0 comments on commit 2a54390

Please sign in to comment.