diff options
author | Mike Christie <michaelc@cs.wisc.edu> | 2009-10-21 19:27:44 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2009-12-04 13:00:31 -0500 |
commit | 8eca355fa8af660557fbdd5506bde1392eee9bfe (patch) | |
tree | 9c42e36295ad001aa4d898ae890be1d8d68b20d8 | |
parent | e95147d8fa4e63bf6d8ff249f074d0047338fc61 (diff) |
[SCSI] fcoe: initialize return value in fcoe_destroy
When doing echo ethX > /sys..../destroy I am getting
errors when the tear down succeeds. It looks like the
reason for this is because the rc var is not getting set
when the destruction works. This just sets it to zero.
Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: Robert Love <robert.w.love@intel.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
-rw-r--r-- | drivers/scsi/fcoe/fcoe.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/fcoe/fcoe.c b/drivers/scsi/fcoe/fcoe.c index 7c898875838f..8702c8d728dd 100644 --- a/drivers/scsi/fcoe/fcoe.c +++ b/drivers/scsi/fcoe/fcoe.c | |||
@@ -1631,7 +1631,7 @@ static int fcoe_destroy(const char *buffer, struct kernel_param *kp) | |||
1631 | { | 1631 | { |
1632 | struct fcoe_interface *fcoe; | 1632 | struct fcoe_interface *fcoe; |
1633 | struct net_device *netdev; | 1633 | struct net_device *netdev; |
1634 | int rc; | 1634 | int rc = 0; |
1635 | 1635 | ||
1636 | mutex_lock(&fcoe_config_mutex); | 1636 | mutex_lock(&fcoe_config_mutex); |
1637 | #ifdef CONFIG_FCOE_MODULE | 1637 | #ifdef CONFIG_FCOE_MODULE |