Skip to contentSkip to conversation

be2iscsi: pass the return from beiscsi_open_conn

PATCH In review Jayamohan Kallickal 1 participant 1 message Jul 21, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 4/19 be2iscsi: pass the return from beiscsi_open_conn

This patch passes on the value returned by
beiscsi_open_conn

---
 drivers/scsi/be2iscsi/be_iscsi.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/scsi/be2iscsi/be_iscsi.c +2 -2
index cd1b830..4f3c2a4 100644
@@ -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;
 	}
 
Signature · 1 line
1.6.5.2