staging: rtl8188eu: Remove macros specific to kernel version < 2.6.12
authornavin patidar <navin.patidar@gmail.com>
Sat, 21 Jun 2014 12:49:32 +0000 (18:19 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Jun 2014 00:25:47 +0000 (20:25 -0400)
Signed-off-by: navin patidar <navin.patidar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/include/usb_ops.h

index ff730f49bc4b37bfa4418976dd1bdfae76d42cbd..e10b71142ed99fa5500bde2576188118e6dda814 100644 (file)
@@ -38,7 +38,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)
 
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 12))
 #define rtw_usb_control_msg(dev, pipe, request, requesttype,           \
                            value, index, data, size, timeout_ms)       \
        usb_control_msg((dev), (pipe), (request), (requesttype), (value),\
@@ -46,20 +45,7 @@ enum{
 #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))
-#else
-#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) == 0) ||                          \
-                       ((timeout_ms)*HZ/1000 > 0) ?                    \
-                       ((timeout_ms)*HZ/1000) : 1)
-#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) == 0) || ((timeout_ms)*HZ/1000 > 0) ?\
-                    ((timeout_ms)*HZ/1000) : 1)
-#endif
+
 #include <usb_ops_linux.h>
 
 void rtl8188eu_set_hw_type(struct adapter *padapter);
This page took 0.025023 seconds and 5 git commands to generate.