Commit 6464d5b
scsi: megaraid_sas: Remove redundant variable cmd_type
The variable cmd_type 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/megaraid/megaraid_sas_fusion.c:3228:10: warning: Although
the value stored to 'cmd_type' is used in the enclosing expression, the
value is never actually read from 'cmd_type' [deadcode.DeadStores]
Link: https://lore.kernel.org/r/20220730124509.148457-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>1 parent 554b117 commit 6464d5b
1 file changed
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3199 | 3199 | | |
3200 | 3200 | | |
3201 | 3201 | | |
3202 | | - | |
3203 | 3202 | | |
3204 | 3203 | | |
3205 | 3204 | | |
| |||
3225 | 3224 | | |
3226 | 3225 | | |
3227 | 3226 | | |
3228 | | - | |
| 3227 | + | |
3229 | 3228 | | |
3230 | 3229 | | |
3231 | 3230 | | |
| |||
0 commit comments