Skip to content

Commit e6f3799

Browse files
ColinIanKingmartinkpetersen
authored andcommitted
scsi: initio: Remove redundant variable 'rb'
The variable 'rb' is being assigned a value but it isn't being read afterwards. The assignment is redundant and so 'rb' can be removed. Cleans up clang scan build warning: warning: Although the value stored to 'rb' is used in the enclosing expression, the value is never actually read from 'rb'[deadcode.DeadStores] Signed-off-by: Colin Ian King <colin.i.king@gmail.com> Link: https://lore.kernel.org/r/20240116112606.2263738-1-colin.i.king@gmail.com Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
1 parent d6b75ba commit e6f3799

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/scsi/initio.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,6 @@ static u16 initio_se2_rd(unsigned long base, u8 addr)
371371
*/
372372
static void initio_se2_wr(unsigned long base, u8 addr, u16 val)
373373
{
374-
u8 rb;
375374
u8 instr;
376375
int i;
377376

@@ -400,7 +399,7 @@ static void initio_se2_wr(unsigned long base, u8 addr, u16 val)
400399
udelay(30);
401400
outb(SE2CS, base + TUL_NVRAM); /* -CLK */
402401
udelay(30);
403-
if ((rb = inb(base + TUL_NVRAM)) & SE2DI)
402+
if (inb(base + TUL_NVRAM) & SE2DI)
404403
break; /* write complete */
405404
}
406405
outb(0, base + TUL_NVRAM); /* -CS */

0 commit comments

Comments
 (0)