]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
staging:r8188eu: remove RTW_STATUS_CODE()
authorIvan Safonov <insafonov@gmail.com>
Wed, 4 Jan 2017 10:22:14 +0000 (17:22 +0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Jan 2017 17:50:05 +0000 (18:50 +0100)
RTW_STATUS_CODE() does not used. Remove it.

Signed-off-by: Ivan Safonov <insafonov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/include/osdep_service.h
drivers/staging/rtl8188eu/os_dep/osdep_service.c

index 9047b6dec9ed013795079bb993bf31f72ab3b896..b940bafcc3e4aa1767f5bff8daba2b4609fa9b47 100644 (file)
@@ -69,8 +69,6 @@ static inline int rtw_netif_queue_stopped(struct net_device *pnetdev)
                netif_tx_queue_stopped(netdev_get_tx_queue(pnetdev, 3));
 }
 
-int RTW_STATUS_CODE(int error_code);
-
 #define rtw_update_mem_stat(flag, sz) do {} while (0)
 u8 *_rtw_malloc(u32 sz);
 #define rtw_malloc(sz)                 _rtw_malloc((sz))
index 51abfe9c3b231858a35d29d392f640440e127791..3be87252fd6206a8f293e0706ba1cd8c5a728b68 100644 (file)
 #include <linux/vmalloc.h>
 #include <rtw_ioctl_set.h>
 
-/*
- * Translate the OS dependent @param error_code to OS independent
- * RTW_STATUS_CODE
- * @return: one of RTW_STATUS_CODE
- */
-inline int RTW_STATUS_CODE(int error_code)
-{
-       if (error_code >= 0)
-               return _SUCCESS;
-       return _FAIL;
-}
-
 u8 *_rtw_malloc(u32 sz)
 {
        return kmalloc(sz, in_interrupt() ? GFP_ATOMIC : GFP_KERNEL);