Linux SCSI subsystem development
 help / color / mirror / Atom feed
* [patch] scsi: libfc: Remove an unneeded condition
@ 2016-11-24 10:52 Dan Carpenter
  2016-11-25  8:59 ` Johannes Thumshirn
  2016-11-25 15:07 ` Martin K. Petersen
  0 siblings, 2 replies; 3+ messages in thread
From: Dan Carpenter @ 2016-11-24 10:52 UTC (permalink / raw)
  To: Johannes Thumshirn, Hannes Reinecke
  Cc: James E.J. Bottomley, Martin K. Petersen, fcoe-devel, linux-scsi,
	kernel-janitors

We verified that resp_code is FC_SPP_RESP_ACK earlier so we don't need
to check again here.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>

diff --git a/drivers/scsi/libfc/fc_rport.c b/drivers/scsi/libfc/fc_rport.c
index 110a707..c991f3b 100644
--- a/drivers/scsi/libfc/fc_rport.c
+++ b/drivers/scsi/libfc/fc_rport.c
@@ -1196,7 +1196,6 @@ static void fc_rport_prli_resp(struct fc_seq *sp, struct fc_frame *fp,
 		 * Check if the image pair could be established
 		 */
 		if (rdata->spp_type != FC_TYPE_FCP ||
-		    resp_code != FC_SPP_RESP_ACK ||
 		    !(pp->spp.spp_flags & FC_SPP_EST_IMG_PAIR)) {
 			/*
 			 * Nope; we can't use this port as a target.

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-11-25 16:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-24 10:52 [patch] scsi: libfc: Remove an unneeded condition Dan Carpenter
2016-11-25  8:59 ` Johannes Thumshirn
2016-11-25 15:07 ` Martin K. Petersen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox