From: Dan Carpenter Date: Thu, 24 Nov 2016 10:52:38 +0000 (+0300) Subject: scsi: libfc: Remove an unneeded condition X-Git-Tag: v4.14-rc1~1899^2~49 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=27c3d76821a5f563cd3d760bfa7c8deb43f8d874;p=platform%2Fkernel%2Flinux-rpi3.git scsi: libfc: Remove an unneeded condition 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 Acked-by: Johannes Thumshirn Signed-off-by: Martin K. Petersen --- 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.