[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <071BFAD4-9821-4027-9E3A-39D60A2FD4E7@oracle.com>
Date: Mon, 13 Sep 2021 14:58:24 +0000
From: Himanshu Madhani <himanshu.madhani@...cle.com>
To: Colin King <colin.king@...onical.com>
CC: Nilesh Javali <njavali@...vell.com>,
GR-QLogic-Storage-Upstream <GR-QLogic-Storage-Upstream@...vell.com>,
"James E . J . Bottomley" <jejb@...ux.ibm.com>,
Martin Petersen <martin.petersen@...cle.com>,
linux-scsi <linux-scsi@...r.kernel.org>,
"kernel-janitors@...r.kernel.org" <kernel-janitors@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] scsi: qla2xxx: Remove redundant initialization of pointer
req
> On Sep 10, 2021, at 6:46 AM, Colin King <colin.king@...onical.com> wrote:
>
> From: Colin Ian King <colin.king@...onical.com>
>
> The pointer req is being initialized with a value that is never read, it
> is being updated later on. The assignment is redundant and can be removed.
>
> Addresses-Coverity: ("Unused value")
> Signed-off-by: Colin Ian King <colin.king@...onical.com>
> ---
> drivers/scsi/qla2xxx/qla_mbx.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/scsi/qla2xxx/qla_mbx.c b/drivers/scsi/qla2xxx/qla_mbx.c
> index 7811c4952035..b5e21fad9551 100644
> --- a/drivers/scsi/qla2xxx/qla_mbx.c
> +++ b/drivers/scsi/qla2xxx/qla_mbx.c
> @@ -3236,7 +3236,7 @@ qla24xx_abort_command(srb_t *sp)
> fc_port_t *fcport = sp->fcport;
> struct scsi_qla_host *vha = fcport->vha;
> struct qla_hw_data *ha = vha->hw;
> - struct req_que *req = vha->req;
> + struct req_que *req;
> struct qla_qpair *qpair = sp->qpair;
>
> ql_dbg(ql_dbg_mbx + ql_dbg_verbose, vha, 0x108c,
> --
> 2.32.0
>
Reviewed-by: Himanshu Madhani <himanshu.madhani@...cle.com>
--
Himanshu Madhani Oracle Linux Engineering
Powered by blists - more mailing lists