drivers/net/usb: remove redundant ret variable
Subsystems (4)
PATCH 1/1 drivers/net/usb: remove redundant ret variable
From: Minghao Chi <[email protected]>
Return value from __aqc111_write_cmd() 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/net/usb/aqc111.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-)
drivers/net/usb/aqc111.c +1 -5
@@ -110,12 +110,8 @@ static int __aqc111_write_cmd(struct usbnet *dev, u8 cmd, u8 reqtype,static int aqc111_write_cmd_nopm (struct usbnet *dev,u8 cmd,u16 value,u16 index,u16 size,void *data) { -int ret; - - ret =__aqc111_write_cmd (dev, cmd,USB_DIR_OUT |USB_TYPE_VENDOR | +return __aqc111_write_cmd (dev, cmd,USB_DIR_OUT |USB_TYPE_VENDOR |USB_RECIP_DEVICE , value, index, size, data); - -return ret; } static int aqc111_write_cmd(struct usbnet *dev, u8 cmd, u16 value,
Signature · 1 line
2.25.1