]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: fcoe: Remove redundant assignment to variable 'wlen'
authorColin Ian King <colin.i.king@gmail.com>
Thu, 23 Jun 2022 16:47:10 +0000 (17:47 +0100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 28 Jun 2022 02:45:25 +0000 (22:45 -0400)
commit99ceaf976f7c9d8275e5dc0095c401f73e406d43
treec34ada81581ba13459ba7b11e4b0cab52b4965b0
parent231bdd1212cce31b9da35213ed0b589f83667da4
scsi: fcoe: Remove redundant assignment to variable 'wlen'

Variable wlen is being assigned a value that is never read, it is being
re-assigned with a different value later on. The assignment is redundant
and can be removed.

Cleans up clang scan build warning:
drivers/scsi/fcoe/fcoe.c:1491:2: warning: Value stored to 'wlen'
is never read [deadcode.DeadStores]

Link: https://lore.kernel.org/r/20220623164710.76831-1-colin.i.king@gmail.com
Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/fcoe/fcoe.c