OSDN Git Service

staging: rtl8723au: Don't wrap calls to usb_control_msg()
authorJes Sorensen <Jes.Sorensen@redhat.com>
Fri, 16 May 2014 08:04:59 +0000 (10:04 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 16 May 2014 18:34:34 +0000 (11:34 -0700)
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723au/hal/usb_ops_linux.c
drivers/staging/rtl8723au/include/usb_ops.h

index be43863..e156377 100644 (file)
@@ -73,9 +73,9 @@ static int usbctrl_vendorreq(struct rtw_adapter *padapter, u8 request,
                        memcpy(pIo_buf, pdata, len);
                }
 
-               status = rtw_usb_control_msg(udev, pipe, request, reqtype,
-                                            value, index, pIo_buf, len,
-                                            RTW_USB_CONTROL_MSG_TIMEOUT);
+               status = usb_control_msg(udev, pipe, request, reqtype,
+                                        value, index, pIo_buf, len,
+                                        RTW_USB_CONTROL_MSG_TIMEOUT);
 
                if (status == len) {   /*  Success this control transfer. */
                        rtw_reset_continual_urb_error(pdvobjpriv);
index a5fd432..be75c9f 100644 (file)
@@ -34,10 +34,6 @@ enum {
 #define MAX_VENDOR_REQ_CMD_SIZE        254             /* 8188cu SIE Support */
 #define MAX_USB_IO_CTL_SIZE    (MAX_VENDOR_REQ_CMD_SIZE +ALIGNMENT_UNIT)
 
-#define rtw_usb_control_msg(dev, pipe, request, requesttype, value,    \
-                           index, data, size, timeout_ms)              \
-       usb_control_msg((dev), (pipe), (request), (requesttype),        \
-                       (value), (index), (data), (size), (timeout_ms))
 #define rtw_usb_bulk_msg(usb_dev, pipe, data, len, actual_length, timeout_ms) \
        usb_bulk_msg((usb_dev), (pipe), (data), (len), (actual_length), \
                     (timeout_ms))