Skip to content

Commit 61144d8

Browse files
ColinIanKingmartinkpetersen
authored andcommitted
scsi: message: fusion: Remove redundant variable dmp
Variable dmp is being assigned a value that is never read, the variable is redundant and can be removed. Cleans up clang scan build warning: drivers/message/fusion/mptbase.c:6667:39: warning: Although the value stored to 'dmp' is used in the enclosing expression, the value is never actually read from 'dmp' [deadcode.DeadStores] Link: https://lore.kernel.org/r/20220318003927.81471-1-colin.i.king@gmail.com Reviewed-by: Nick Desaulniers <ndesaulniers@google.com> Signed-off-by: Colin Ian King <colin.i.king@gmail.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
1 parent 5f2bce1 commit 61144d8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/message/fusion/mptbase.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6658,13 +6658,13 @@ static int mpt_summary_proc_show(struct seq_file *m, void *v)
66586658
static int mpt_version_proc_show(struct seq_file *m, void *v)
66596659
{
66606660
u8 cb_idx;
6661-
int scsi, fc, sas, lan, ctl, targ, dmp;
6661+
int scsi, fc, sas, lan, ctl, targ;
66626662
char *drvname;
66636663

66646664
seq_printf(m, "%s-%s\n", "mptlinux", MPT_LINUX_VERSION_COMMON);
66656665
seq_printf(m, " Fusion MPT base driver\n");
66666666

6667-
scsi = fc = sas = lan = ctl = targ = dmp = 0;
6667+
scsi = fc = sas = lan = ctl = targ = 0;
66686668
for (cb_idx = MPT_MAX_PROTOCOL_DRIVERS-1; cb_idx; cb_idx--) {
66696669
drvname = NULL;
66706670
if (MptCallbacks[cb_idx]) {

0 commit comments

Comments
 (0)