[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20220907021813.85650-1-jiapeng.chong@linux.alibaba.com>
Date: Wed, 7 Sep 2022 10:18:13 +0800
From: Jiapeng Chong <jiapeng.chong@...ux.alibaba.com>
To: sathya.prakash@...adcom.com
Cc: sreekanth.reddy@...adcom.com,
suganath-prabu.subramani@...adcom.com,
MPT-FusionLinux.pdl@...adcom.com, linux-scsi@...r.kernel.org,
linux-kernel@...r.kernel.org,
Jiapeng Chong <jiapeng.chong@...ux.alibaba.com>,
Abaci Robot <abaci@...ux.alibaba.com>
Subject: [PATCH] [SCSI] mpt fusion: remove unreachable code
The function mptctl_do_fw_download cannot execute return 0, delete the
invalid code.
drivers/message/fusion/mptctl.c:978 mptctl_do_fw_download() warn: ignoring unreachable code.
Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=2086
Reported-by: Abaci Robot <abaci@...ux.alibaba.com>
Signed-off-by: Jiapeng Chong <jiapeng.chong@...ux.alibaba.com>
---
drivers/message/fusion/mptctl.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/message/fusion/mptctl.c b/drivers/message/fusion/mptctl.c
index 52c7020c9d19..72affe00dcec 100644
--- a/drivers/message/fusion/mptctl.c
+++ b/drivers/message/fusion/mptctl.c
@@ -975,7 +975,6 @@ mptctl_do_fw_download(MPT_ADAPTER *iocp, char __user *ufwbuf, size_t fwlen)
printk(MYIOC_s_WARN_FMT "(bad VooDoo)\n", iocp->name);
return -ENOMSG;
}
- return 0;
fwdl_out:
--
2.19.1.6.gb485710b
Powered by blists - more mailing lists