[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <166200877447.26143.13707974682721049195.b4-ty@oracle.com>
Date: Thu, 1 Sep 2022 01:12:46 -0400
From: "Martin K. Petersen" <martin.petersen@...cle.com>
To: Colin Ian King <colin.i.king@...il.com>,
linux-scsi@...r.kernel.org,
"James E . J . Bottomley" <jejb@...ux.ibm.com>
Cc: "Martin K . Petersen" <martin.petersen@...cle.com>,
linux-kernel@...r.kernel.org, kernel-janitors@...r.kernel.org
Subject: Re: [PATCH] scsi: initio: remove redundant assignment to pointer scb
On Fri, 5 Aug 2022 12:41:00 +0100, Colin Ian King wrote:
> The variable scb is assigned a value but it is never read. The assignment
> is redundant and can be removed. Also replace the != NULL check with the
> more usual non-null check idiom.
>
> Cleans up clang scan build warning:
> drivers/scsi/initio.c:1169:9: warning: Although the value stored to 'scb'
> is used in the enclosing expression, the value is never actually read
> from 'scb' [deadcode.DeadStores]
>
> [...]
Applied to 6.1/scsi-queue, thanks!
[1/1] scsi: initio: remove redundant assignment to pointer scb
https://git.kernel.org/mkp/scsi/c/3fa5975b07e9
--
Martin K. Petersen Oracle Linux Engineering
Powered by blists - more mailing lists