diff options
author | Jayamohan Kallickal <jayamohank@serverengines.com> | 2010-07-22 04:16:38 +0530 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2010-07-28 09:05:29 -0500 |
commit | d3ad2bb31c26d7314fad98da8abb04f4fa24ed16 (patch) | |
tree | cf2ccd6434cddce6e6c52df040b032384a52875a /drivers/scsi/be2iscsi/be_mgmt.c | |
parent | 457ff3b7dc3796d8778286217ad304ff122e948f (diff) | |
download | linux-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.c | 2 |
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; |