Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 27c3d768 authored by Dan Carpenter's avatar Dan Carpenter Committed by Martin K. Petersen
Browse files

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: default avatarDan Carpenter <dan.carpenter@oracle.com>
Acked-by: default avatarJohannes Thumshirn <jth@kernel.org>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent 679882ae
Loading
Loading
Loading
Loading
+0 −1
Original line number Original line Diff line number Diff line
@@ -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
		 * Check if the image pair could be established
		 */
		 */
		if (rdata->spp_type != FC_TYPE_FCP ||
		if (rdata->spp_type != FC_TYPE_FCP ||
		    resp_code != FC_SPP_RESP_ACK ||
		    !(pp->spp.spp_flags & FC_SPP_EST_IMG_PAIR)) {
		    !(pp->spp.spp_flags & FC_SPP_EST_IMG_PAIR)) {
			/*
			/*
			 * Nope; we can't use this port as a target.
			 * Nope; we can't use this port as a target.