staging: rtl8723au: Remove unused USB bulk related macros and variables
authorJes Sorensen <Jes.Sorensen@redhat.com>
Fri, 16 May 2014 08:05:00 +0000 (10:05 +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_halinit.c
drivers/staging/rtl8723au/include/rtl8723a_hal.h
drivers/staging/rtl8723au/include/usb_ops.h

index ccc57fd..9ef333c 100644 (file)
@@ -85,14 +85,6 @@ void rtl8723au_chip_configure(struct rtw_adapter *padapter)
        struct hal_data_8723a *pHalData = GET_HAL_DATA(padapter);
        struct dvobj_priv *pdvobjpriv = adapter_to_dvobj(padapter);
 
-       if (pdvobjpriv->ishighspeed == true) {
-               /* 512 bytes */
-               pHalData->UsbBulkOutSize = USB_HIGH_SPEED_BULK_SIZE;
-       } else {
-               /* 64 bytes */
-               pHalData->UsbBulkOutSize = USB_FULL_SPEED_BULK_SIZE;
-       }
-
        pHalData->interfaceIndex = pdvobjpriv->InterfaceNumber;
 
        rtl8723au_set_queue_pipe_mapping(padapter,
index c22bb81..1aa65e0 100644 (file)
@@ -413,11 +413,6 @@ struct hal_data_8723a {
 
        bool                            bMACFuncEnable;
 
-       /*  */
-       /*  For USB Interface HAL related */
-       /*  */
-       u32     UsbBulkOutSize;
-
        /*  Interrupt related register information. */
        u32     IntArray[2];
        u32     IntrMask[2];
index be75c9f..977805d 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_bulk_msg(usb_dev, pipe, data, len, actual_length, timeout_ms) \
-       usb_bulk_msg((usb_dev), (pipe), (data), (len), (actual_length), \
-                    (timeout_ms))
-
 void rtl8723au_set_hw_type(struct rtw_adapter *padapter);
 
 void rtl8723au_set_intf_ops(struct rtw_adapter *padapter);
@@ -69,24 +65,6 @@ static inline void rtw_reset_continual_urb_error(struct dvobj_priv *dvobj)
        atomic_set(&dvobj->continual_urb_error, 0);
 }
 
-#define USB_HIGH_SPEED_BULK_SIZE       512
-#define USB_FULL_SPEED_BULK_SIZE       64
-
-static inline u8 rtw_usb_bulk_size_boundary(struct rtw_adapter *padapter,
-                                           int buf_len)
-{
-       u8 rst = true;
-       struct dvobj_priv *pdvobjpriv = adapter_to_dvobj(padapter);
-
-       if (pdvobjpriv->ishighspeed)
-               rst = (0 == (buf_len) % USB_HIGH_SPEED_BULK_SIZE) ?
-                     true : false;
-       else
-               rst = (0 == (buf_len) % USB_FULL_SPEED_BULK_SIZE) ?
-                     true : false;
-       return rst;
-}
-
 void rtl8723au_chip_configure(struct rtw_adapter *padapter);
 
 #endif /* __USB_OPS_H_ */