[SCSI] be2iscsi: pass the return from beiscsi_open_conn
authorJayamohan Kallickal <jayamohank@serverengines.com>
Wed, 21 Jul 2010 22:48:01 +0000 (04:18 +0530)
committerJames Bottomley <James.Bottomley@suse.de>
Wed, 28 Jul 2010 14:05:30 +0000 (09:05 -0500)
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>
drivers/scsi/be2iscsi/be_iscsi.c

index cd1b8301036d721d0f1a9a442612a189940e5d5c..4f3c2a4079df8adf0c4105e1231b7d4032ea2a37 100644 (file)
@@ -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;
        }