mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-11 04:18:39 +08:00
staging: vt6655: remove redundant assignment to variable byData
Variable byData is being assigned a value that is never read, it is being re-assigned later on. The assignment is redundant and can be removed. Cleans up clang scan build warning: drivers/staging/vt6655/srom.c:67:2: warning: Value stored to 'byData' is never read [deadcode.DeadStores] Signed-off-by: Colin Ian King <colin.i.king@gmail.com> Tested-by: Philipp Hortmann <philipp.g.hortmann@gmail.com> Link: https://lore.kernel.org/r/20240328111557.761380-1-colin.i.king@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
ebee9ca2f5
commit
fdb43d131f
@ -64,7 +64,6 @@ unsigned char SROMbyReadEmbedded(void __iomem *iobase,
|
||||
unsigned char byData;
|
||||
unsigned char byOrg;
|
||||
|
||||
byData = 0xFF;
|
||||
byOrg = ioread8(iobase + MAC_REG_I2MCFG);
|
||||
/* turn off hardware retry for getting NACK */
|
||||
iowrite8(byOrg & (~I2MCFG_NORETRY), iobase + MAC_REG_I2MCFG);
|
||||
|
Loading…
Reference in New Issue
Block a user