drivers/message/fusion: remove redundant rc variable
Subsystems (2)
PATCH 1/1 drivers/message/fusion: remove redundant rc variable
From: Minghao Chi <[email protected]>
Return value from mptctl_do_mpt_command() directly instead of taking this in another redundant variable.
Reported-by Zeal Robot <[email protected]>
Signed-off-by Minghao Chi <[email protected]>
Signed-off-by CGEL ZTE <[email protected]>
--- drivers/message/fusion/mptctl.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-)
drivers/message/fusion/mptctl.c +1 -5
@@ -1696,8 +1696,6 @@ mptctl_mpt_command (MPT_ADAPTER *ioc, unsigned long arg) {struct mpt_ioctl_command __user *uarg = (void __user *) arg;struct mpt_ioctl_command karg; -int rc; -if (copy_from_user (&karg, uarg,sizeof (struct mpt_ioctl_command ))) { printk(KERN_ERR MYNAM "%s@%d::mptctl_mpt_command - "
@@ -1706,9 +1704,7 @@ mptctl_mpt_command (MPT_ADAPTER *ioc, unsigned long arg)return -EFAULT ; } - rc =mptctl_do_mpt_command (ioc, karg, &uarg->MF); - -return rc; +return mptctl_do_mpt_command (ioc, karg, &uarg->MF); }/*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/
Signature · 1 line
2.25.1