summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/be2iscsi/be_mgmt.c
diff options
context:
space:
mode:
authorJayamohan Kallickal <jayamohank@serverengines.com>2010-07-22 04:16:38 +0530
committerJames Bottomley <James.Bottomley@suse.de>2010-07-28 09:05:29 -0500
commitd3ad2bb31c26d7314fad98da8abb04f4fa24ed16 (patch)
treecf2ccd6434cddce6e6c52df040b032384a52875a /drivers/scsi/be2iscsi/be_mgmt.c
parent457ff3b7dc3796d8778286217ad304ff122e948f (diff)
downloadlinux-d3ad2bb31c26d7314fad98da8abb04f4fa24ed16.tar.gz
linux-d3ad2bb31c26d7314fad98da8abb04f4fa24ed16.tar.bz2
linux-d3ad2bb31c26d7314fad98da8abb04f4fa24ed16.zip
[SCSI] be2iscsi: Fixing return values
This patch fixes the return values as per comment from Mike Christie Signed-off-by: Jayamohan Kallickal <jayamohank@serverengines.com> Reviewed-by: Mike Christie <michaelc@cs.wisc.edu> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/be2iscsi/be_mgmt.c')
-rw-r--r--drivers/scsi/be2iscsi/be_mgmt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/be2iscsi/be_mgmt.c b/drivers/scsi/be2iscsi/be_mgmt.c
index 7d4ac5c1a868..ff8b1cd6fec4 100644
--- a/drivers/scsi/be2iscsi/be_mgmt.c
+++ b/drivers/scsi/be2iscsi/be_mgmt.c
@@ -81,7 +81,7 @@ unsigned char mgmt_check_supported_fw(struct be_ctrl_info *ctrl,
SE_DEBUG(DBG_LVL_1,
"Failed to allocate memory for mgmt_check_supported_fw"
"\n");
- return -1;
+ return -ENOMEM;
}
nonemb_cmd.size = sizeof(struct be_mgmt_controller_attributes);
req = nonemb_cmd.va;