summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/be2iscsi/be_mgmt.c
diff options
context:
space:
mode:
authorJayamohan Kallickal2010-07-22 00:46:38 +0200
committerJames Bottomley2010-07-28 16:05:29 +0200
commitd3ad2bb31c26d7314fad98da8abb04f4fa24ed16 (patch)
treecf2ccd6434cddce6e6c52df040b032384a52875a /drivers/scsi/be2iscsi/be_mgmt.c
parent[SCSI] be2iscsi: Fix warnings from new checkpatch.pl (diff)
downloadkernel-qcow2-linux-d3ad2bb31c26d7314fad98da8abb04f4fa24ed16.tar.gz
kernel-qcow2-linux-d3ad2bb31c26d7314fad98da8abb04f4fa24ed16.tar.xz
kernel-qcow2-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;