Re: [PATCH] scsi: qla2xxx: Remove redundant assignment to rval

From: Martin K. Petersen
Date: Wed May 26 2021 - 00:08:07 EST


On Mon, 10 May 2021 18:40:06 +0800, Jiapeng Chong wrote:

> Variable rval is set to QLA_SUCCESS, but this value is never read as
> it is overwritten later on, hence it is a redundant assignment and
> can be removed.
>
> Clean up the following clang-analyzer warning:
>
> drivers/scsi/qla2xxx/qla_init.c:4359:2: warning: Value stored to 'rval'
> is never read [clang-analyzer-deadcode.DeadStores].

Applied to 5.14/scsi-queue, thanks!

[1/1] scsi: qla2xxx: Remove redundant assignment to rval
https://git.kernel.org/mkp/scsi/c/cb9eb11fd572

--
Martin K. Petersen Oracle Linux Engineering