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

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
...@@ -1196,7 +1196,6 @@ static void fc_rport_prli_resp(struct fc_seq *sp, struct fc_frame *fp, ...@@ -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.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment