From: Jing Xiangfeng Date: Thu, 17 Sep 2020 02:19:06 +0000 (+0800) Subject: scsi: qedf: Remove redundant assignment to variable 'rc' X-Git-Tag: v5.15~2583^2~45 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=da7d5d72ae8341c6b48a7e44a615fede9ab5eb90;p=platform%2Fkernel%2Flinux-starfive.git scsi: qedf: Remove redundant assignment to variable 'rc' This assignment is meaningless. Remove it. Link: https://lore.kernel.org/r/20200917021906.175933-1-jingxiangfeng@huawei.com Signed-off-by: Jing Xiangfeng Signed-off-by: Martin K. Petersen --- diff --git a/drivers/scsi/qedf/qedf_io.c b/drivers/scsi/qedf/qedf_io.c index 86c8afb9a4eb..4869ef813dc4 100644 --- a/drivers/scsi/qedf/qedf_io.c +++ b/drivers/scsi/qedf/qedf_io.c @@ -2163,7 +2163,6 @@ int qedf_initiate_cleanup(struct qedf_ioreq *io_req, /* Sanity check qedf_rport before dereferencing any pointers */ if (!test_bit(QEDF_RPORT_SESSION_READY, &fcport->flags)) { QEDF_ERR(NULL, "tgt not offloaded\n"); - rc = 1; return SUCCESS; }