fc_lport_error is getting called durring initialization when
there is no error.
Signed-off-by: Robert Love <[EMAIL PROTECTED]>
---
drivers/scsi/libfc/fc_lport.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/scsi/libfc/fc_lport.c b/drivers/scsi/libfc/fc_lport.c
index 1cbc2b4..baddaf5 100644
--- a/drivers/scsi/libfc/fc_lport.c
+++ b/drivers/scsi/libfc/fc_lport.c
@@ -787,8 +787,10 @@ fc_lport_flogi_resp(struct fc_seq *sp, struct fc_frame
*fp, void *lp_arg)
unsigned int e_d_tov;
u16 mfs;
- if (IS_ERR(fp))
- goto out;
+ if (IS_ERR(fp)) {
+ fc_lport_error(lp, fp);
+ return;
+ }
fh = fc_frame_header_get(fp);
did = ntoh24(fh->fh_d_id);
@@ -837,8 +839,6 @@ fc_lport_flogi_resp(struct fc_seq *sp, struct fc_frame *fp,
void *lp_arg)
FC_DBG("bad FLOGI response\n");
}
fc_frame_free(fp);
-out:
- fc_lport_error(lp, fp);
}
/*
_______________________________________________
devel mailing list
[email protected]
http://www.open-fcoe.org/mailman/listinfo/devel