staging: r8188eu: remove a comment from usbctrl_vendorreq()
authorFabio M. De Francesco <fmdefrancesco@gmail.com>
Fri, 24 Sep 2021 12:26:54 +0000 (14:26 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 27 Sep 2021 15:37:11 +0000 (17:37 +0200)
Remove an unnecessary comment from usbctrl_vendorreq().

Co-developed-by: Pavel Skripkin <paskripkin@gmail.com>
Signed-off-by: Pavel Skripkin <paskripkin@gmail.com>
Signed-off-by: Fabio M. De Francesco <fmdefrancesco@gmail.com>
Link: https://lore.kernel.org/r/20210924122705.3781-6-fmdefrancesco@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/hal/usb_ops_linux.c

index 35d268c5cd7f4b72f212e27b759ef6409457c77b..5c9613cc241536dc5bd5a3d6132e553f6e59bd14 100644 (file)
@@ -70,10 +70,8 @@ static int usbctrl_vendorreq(struct intf_hdl *intf, u16 value, void *data, u16 l
                        } else {
                                /* status != len && status >= 0 */
                                if (status > 0) {
-                                       if (requesttype == REALTEK_USB_VENQT_READ) {
-                                               /*  For Control read transfer, we have to copy the read data from io_buf to data. */
+                                       if (requesttype == REALTEK_USB_VENQT_READ)
                                                memcpy(data, io_buf,  len);
-                                       }
                                }
                        }