staging: rtl8188eu: Remove continual_urb_error from struct dvobj_priv
authornavin patidar <navin.patidar@gmail.com>
Sat, 21 Jun 2014 12:49:36 +0000 (18:19 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Jun 2014 00:25:47 +0000 (20:25 -0400)
rtw_inc_and_chk_continual_urb_error() was only user of continual_urb_error,
which has been removed.

Signed-off-by: navin patidar <navin.patidar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/include/drv_types.h
drivers/staging/rtl8188eu/include/usb_ops.h
drivers/staging/rtl8188eu/os_dep/usb_intf.c
drivers/staging/rtl8188eu/os_dep/usb_ops_linux.c

index 67501352fd663ef2d6bb4bb498650b8e51ee3fc5..097fcc9b54e1a4576b112b1094817c41d47b47cb 100644 (file)
@@ -174,8 +174,6 @@ struct dvobj_priv {
 
        struct usb_interface *pusbintf;
        struct usb_device *pusbdev;
-
-       atomic_t continual_urb_error;
 };
 
 static inline struct device *dvobj_to_dev(struct dvobj_priv *dvobj)
index eb934bf0f3915f208f45f3dea62c913a8b395927..ea23b459d88e5f658369733aade61dad05486221 100644 (file)
 
 #include <usb_ops_linux.h>
 
-/*
-* Set the continual_urb_error of this @param dvobjprive to 0
-*/
-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
 
index c4a4880e7b8a83bfe21626989313b19bf0ed986c..4af2c956fc349c8ac54ac1d77f40bea86d46de4b 100644 (file)
@@ -121,8 +121,6 @@ static struct dvobj_priv *usb_dvobj_init(struct usb_interface *usb_intf)
        if (!pdvobjpriv->usb_vendor_req_buf)
                goto free_dvobj;
 
-       rtw_reset_continual_urb_error(pdvobjpriv);
-
        usb_get_dev(pusbd);
 
        status = _SUCCESS;
index 9f9bb06a17f192635c8fa77e19da947013e9734f..ad7c48e78d526bd7153c4714c5e4fb1b600f3c4f 100644 (file)
@@ -276,7 +276,6 @@ static int usbctrl_vendorreq(struct adapter *adapt, u8 request, u16 value, u16 i
                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(dvobjpriv);
                        if (requesttype == 0x01)
                                memcpy(pdata, pIo_buf,  len);
                } else { /*  error cases */
@@ -408,8 +407,6 @@ static void usb_read_port_complete(struct urb *purb, struct pt_regs *regs)
                        usb_read_port(adapt, precvpriv->ff_hwaddr, 0, (unsigned char *)precvbuf);
                        DBG_88E("%s()-%d: RX Warning!\n", __func__, __LINE__);
                } else {
-                       rtw_reset_continual_urb_error(adapter_to_dvobj(adapt));
-
                        skb_put(precvbuf->pskb, purb->actual_length);
                        skb_queue_tail(&precvpriv->rx_skb_queue, precvbuf->pskb);