summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJayamohan Kallickal <jayamohank@serverengines.com>2010-07-22 00:48:01 +0200
committerJames Bottomley <James.Bottomley@suse.de>2010-07-28 16:05:30 +0200
commitf5ed7bd4c6ca5fcec77d3007779d38f63cbb95f4 (patch)
tree93817d85fb3bf03cbb285c4c3b9de69247a80ff7
parent[SCSI] be2iscsi: Fixing the return type of functions (diff)
downloadlinux-f5ed7bd4c6ca5fcec77d3007779d38f63cbb95f4.tar.xz
linux-f5ed7bd4c6ca5fcec77d3007779d38f63cbb95f4.zip
[SCSI] be2iscsi: pass the return from beiscsi_open_conn
This patch passes on the value returned by beiscsi_open_conn 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>
-rw-r--r--drivers/scsi/be2iscsi/be_iscsi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/be2iscsi/be_iscsi.c b/drivers/scsi/be2iscsi/be_iscsi.c
index cd1b8301036d..4f3c2a4079df 100644
--- a/drivers/scsi/be2iscsi/be_iscsi.c
+++ b/drivers/scsi/be2iscsi/be_iscsi.c
@@ -580,9 +580,9 @@ beiscsi_ep_connect(struct Scsi_Host *shost, struct sockaddr *dst_addr,
beiscsi_ep = ep->dd_data;
beiscsi_ep->phba = phba;
beiscsi_ep->openiscsi_ep = ep;
- if (beiscsi_open_conn(ep, NULL, dst_addr, non_blocking)) {
+ ret = beiscsi_open_conn(ep, NULL, dst_addr, non_blocking);
+ if (ret) {
SE_DEBUG(DBG_LVL_1, "Failed in beiscsi_open_conn\n");
- ret = -ENOMEM;
goto free_ep;
}