Message ID | 20220830143318.299640-1-cui.jinpeng2@zte.com.cn |
---|---|
State | New |
Headers | show |
Series | [linux-next] usb: core: remove redundant variables ret | expand |
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 */