diff mbox series

[SCSI] mpt fusion: remove unreachable code

Message ID 20220907021813.85650-1-jiapeng.chong@linux.alibaba.com
State New
Headers show
Series [SCSI] mpt fusion: remove unreachable code | expand

Commit Message

Jiapeng Chong Sept. 7, 2022, 2:18 a.m. UTC
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@linux.alibaba.com>
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
---
 drivers/message/fusion/mptctl.c | 1 -
 1 file changed, 1 deletion(-)
diff mbox series

Patch

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: