Skip to content

Commit c10ba0c

Browse files
ColinIanKingmartinkpetersen
authored andcommitted
scsi: qla1280: Remove redundant variable
Variable toke is being assigned a value that is never read. The variable is redundant, remove it. Cleans up clang scan build warning: warning: Although the value stored to 'toke' is used in the enclosing expression, the value is never actually read from 'toke' [deadcode.DeadStores] Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Colin Ian King <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
1 parent 896325a commit c10ba0c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/scsi/qla1280.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4037,7 +4037,6 @@ qla1280_setup(char *s)
40374037
{
40384038
char *cp, *ptr;
40394039
unsigned long val;
4040-
int toke;
40414040

40424041
cp = s;
40434042

@@ -4052,7 +4051,7 @@ qla1280_setup(char *s)
40524051
} else
40534052
val = simple_strtoul(ptr, &ptr, 0);
40544053

4055-
switch ((toke = qla1280_get_token(cp))) {
4054+
switch (qla1280_get_token(cp)) {
40564055
case TOKEN_NVRAM:
40574056
if (!val)
40584057
driver_setup.no_nvram = 1;

0 commit comments

Comments
 (0)