Skip to content

Commit 554b117

Browse files
ColinIanKingmartinkpetersen
authored andcommitted
scsi: FlashPoint: Remove redundant variable bm_int_st
The variable bm_int_st is assigned a value but it is never read. The variable and the assignment are redundant and can be removed. Cleans up clang scan build warning: drivers/scsi/FlashPoint.c:1726:7: warning: Although the value stored to 'bm_int_st' is used in the enclosing expression, the value is never actually read from 'bm_int_st' [deadcode.DeadStores] Link: https://lore.kernel.org/r/[email protected] Acked-by: Khalid Aziz <[email protected]> Signed-off-by: Colin Ian King <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
1 parent 4da8c5f commit 554b117

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/scsi/FlashPoint.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1712,7 +1712,7 @@ static unsigned char FlashPoint_InterruptPending(void *pCurrCard)
17121712
static int FlashPoint_HandleInterrupt(void *pcard)
17131713
{
17141714
struct sccb *currSCCB;
1715-
unsigned char thisCard, result, bm_status, bm_int_st;
1715+
unsigned char thisCard, result, bm_status;
17161716
unsigned short hp_int;
17171717
unsigned char i, target;
17181718
struct sccb_card *pCurrCard = pcard;
@@ -1723,7 +1723,7 @@ static int FlashPoint_HandleInterrupt(void *pcard)
17231723

17241724
MDISABLE_INT(ioport);
17251725

1726-
if ((bm_int_st = RD_HARPOON(ioport + hp_int_status)) & EXT_STATUS_ON)
1726+
if (RD_HARPOON(ioport + hp_int_status) & EXT_STATUS_ON)
17271727
bm_status = RD_HARPOON(ioport + hp_ext_status) &
17281728
(unsigned char)BAD_EXT_STATUS;
17291729
else

0 commit comments

Comments
 (0)