提交 27c3d768 编写于 作者: D Dan Carpenter 提交者: 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: NDan Carpenter <dan.carpenter@oracle.com>
Acked-by: NJohannes Thumshirn <jth@kernel.org>
Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com>
上级 679882ae
......@@ -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.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册