scsi: libfc: Remove an unneeded condition
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 24 Nov 2016 10:52:38 +0000 (13:52 +0300)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 25 Nov 2016 15:07:00 +0000 (10:07 -0500)
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>
Acked-by: Johannes Thumshirn <jth@kernel.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/libfc/fc_rport.c

index 110a707d8e82b096a86fb5a10b82b18efaff65d3..c991f3b822f8857b3120b212f9e00a42b620ed79 100644 (file)
@@ -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.