Message ID | 20200917021906.175933-1-jingxiangfeng@huawei.com |
---|---|
State | New |
Headers | show |
Series | scsi: qedf: remove redundant assignment to variable 'rc' | expand |
Jing,
> This assignment is meaningless, so remove it.
Applied to 5.10/scsi-staging, thanks!
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 --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; }
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(-)