diff mbox series

scsi: qedf: remove redundant assignment to variable 'rc'

Message ID 20200917021906.175933-1-jingxiangfeng@huawei.com (mailing list archive)
State Accepted
Headers show
Series scsi: qedf: remove redundant assignment to variable 'rc' | expand

Commit Message

Jing Xiangfeng Sept. 17, 2020, 2:19 a.m. UTC
This assignment is  meaningless, so remove it.

Signed-off-by: Jing Xiangfeng <jingxiangfeng@huawei.com>
---
 drivers/scsi/qedf/qedf_io.c | 1 -
 1 file changed, 1 deletion(-)

Comments

Martin K. Petersen Oct. 3, 2020, 2:07 a.m. UTC | #1
Jing,

> This assignment is  meaningless, so remove it.

Applied to 5.10/scsi-staging, thanks!
Martin K. Petersen Oct. 7, 2020, 3:47 a.m. UTC | #2
On Thu, 17 Sep 2020 10:19:06 +0800, Jing Xiangfeng wrote:

> This assignment is  meaningless, so remove it.

Applied to 5.10/scsi-queue, thanks!

[1/1] scsi: qedf: Remove redundant assignment to variable 'rc'
      https://git.kernel.org/mkp/scsi/c/da7d5d72ae83
diff mbox series

Patch

diff --git a/drivers/scsi/qedf/qedf_io.c b/drivers/scsi/qedf/qedf_io.c
index acd9774a9387..c04078283121 100644
--- a/drivers/scsi/qedf/qedf_io.c
+++ b/drivers/scsi/qedf/qedf_io.c
@@ -2159,7 +2159,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;
 	}