[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220830143318.299640-1-cui.jinpeng2@zte.com.cn>
Date: Tue, 30 Aug 2022 14:33:18 +0000
From: cgel.zte@...il.com
To: stern@...land.harvard.edu, skhan@...uxfoundation.org,
richard.leitner@...data.com, tasos@...ossah.com
Cc: wsa+renesas@...g-engineering.com, ingo.rohloff@...terbach.com,
cui.jinpeng2@....com.cn, linux-usb@...r.kernel.org,
linux-kernel@...r.kernel.org, Zeal Robot <zealci@....com.cn>
Subject: [PATCH linux-next] usb: core: remove redundant variables ret
From: Jinpeng Cui <cui.jinpeng2@....com.cn>
Rturn value directly from usbdev_do_ioctl() instead of
getting value from redundant variable ret.
Reported-by: Zeal Robot <zealci@....com.cn>
Signed-off-by: Jinpeng Cui <cui.jinpeng2@....com.cn>
---
drivers/usb/core/devio.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/drivers/usb/core/devio.c b/drivers/usb/core/devio.c
index 837f3e57f580..043d934ead83 100644
--- a/drivers/usb/core/devio.c
+++ b/drivers/usb/core/devio.c
@@ -2802,11 +2802,8 @@ static long usbdev_do_ioctl(struct file *file, unsigned int cmd,
static long usbdev_ioctl(struct file *file, unsigned int cmd,
unsigned long arg)
{
- int ret;
-
- ret = usbdev_do_ioctl(file, cmd, (void __user *)arg);
- return ret;
+ return usbdev_do_ioctl(file, cmd, (void __user *)arg);
}
/* No kernel lock - fine */
--
2.25.1
Powered by blists - more mailing lists