lkml.org 
[lkml]   [2022]   [Sep]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH] scsi: message: fusion: remove redundant variable iocnum
Date
On Fri, 5 Aug 2022 12:32:14 +0100, Colin Ian King wrote:

> Variable iocnum is assigned a value that is never read, the assignment
> and hence the variable are redundant can be removed. Also update the
> the comment to reflect the correct name of the variable being updated.
>
> Cleans up clang-scan warning:
> drivers/message/fusion/mptctl.c:641:8: warning: Although the value stored
> to 'iocnum' is used in the enclosing expression, the value is never
> actually read from 'iocnum' [deadcode.DeadStores]
>
> [...]

Applied to 6.1/scsi-queue, thanks!

[1/1] scsi: message: fusion: remove redundant variable iocnum
https://git.kernel.org/mkp/scsi/c/231159f33436

--
Martin K. Petersen Oracle Linux Engineering

\
 
 \ /
  Last update: 2022-09-01 07:15    [W:0.044 / U:0.088 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site