summaryrefslogtreecommitdiffstats
path: root/drivers/staging/rtl8188eu/include/usb_ops.h
diff options
context:
space:
mode:
authornavin patidar <navin.patidar@gmail.com>2014-06-21 18:19:35 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-06-26 20:25:47 -0400
commit9463f27af643db333b74ce27d4caae760b273328 (patch)
tree08d77657810009a0006ca5711debfb5153159d9e /drivers/staging/rtl8188eu/include/usb_ops.h
parent8ccd2d547db1f4fc9e99482458be18274c09d916 (diff)
downloadtalos-obmc-linux-9463f27af643db333b74ce27d4caae760b273328.tar.gz
talos-obmc-linux-9463f27af643db333b74ce27d4caae760b273328.zip
staging: rtl8188eu: Remove inline function rtw_inc_and_chk_continual_urb_error()
rtw_inc_and_chk_continual_urb_error() is used to check if device is removed unexpectedly, to do that we can just check status of urb in usb_read_port_complete() and usbctrl_vendorreq() doed that by checking return value of usb_control_msg(). Signed-off-by: navin patidar <navin.patidar@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rtl8188eu/include/usb_ops.h')
-rw-r--r--drivers/staging/rtl8188eu/include/usb_ops.h19
1 files changed, 0 insertions, 19 deletions
diff --git a/drivers/staging/rtl8188eu/include/usb_ops.h b/drivers/staging/rtl8188eu/include/usb_ops.h
index 79d206e4d8d6..eb934bf0f391 100644
--- a/drivers/staging/rtl8188eu/include/usb_ops.h
+++ b/drivers/staging/rtl8188eu/include/usb_ops.h
@@ -35,25 +35,6 @@
#include <usb_ops_linux.h>
/*
- * Increase and check if the continual_urb_error of this @param dvobjprivei
- * is larger than MAX_CONTINUAL_URB_ERR
- * @return true:
- * @return false:
- */
-static inline int rtw_inc_and_chk_continual_urb_error(struct dvobj_priv *dvobj)
-{
- int ret = false;
- int value;
- value = atomic_inc_return(&dvobj->continual_urb_error);
- if (value > MAX_CONTINUAL_URB_ERR) {
- DBG_88E("[dvobj:%p][ERROR] continual_urb_error:%d > %d\n",
- dvobj, value, MAX_CONTINUAL_URB_ERR);
- ret = true;
- }
- return ret;
-}
-
-/*
* Set the continual_urb_error of this @param dvobjprive to 0
*/
static inline void rtw_reset_continual_urb_error(struct dvobj_priv *dvobj)
OpenPOWER on IntegriCloud