staging: rtl8188eu: hal: hal_intf.c: Cleaning up functions that are not used anywhere
authorRickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Tue, 2 Dec 2014 22:33:29 +0000 (23:33 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Dec 2014 00:29:26 +0000 (16:29 -0800)
Removes some functions that are not used anywhere.
rtw_hal_interrupt_handler() rtw_hal_sreset_get_wifi_status()

This was partially found by using a static code analysis program called cppcheck.

Signed-off-by: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/hal/hal_intf.c
drivers/staging/rtl8188eu/include/hal_intf.h

index 538a0f65d09cbe3f8cbca68631a04025daa4d241..4bdbed28774ebdf7652a3025b9dea66913bd5eb9 100644 (file)
@@ -275,13 +275,6 @@ void rtw_hal_write_rfreg(struct adapter *adapt, enum rf_radio_path rfpath,
                                              bitmask, data);
 }
 
-s32 rtw_hal_interrupt_handler(struct adapter *adapt)
-{
-       if (adapt->HalFunc.interrupt_handler)
-               return adapt->HalFunc.interrupt_handler(adapt);
-       return _FAIL;
-}
-
 void rtw_hal_set_bwmode(struct adapter *adapt,
                        enum ht_channel_width bandwidth, u8 offset)
 {
@@ -329,15 +322,6 @@ void rtw_hal_sreset_init(struct adapter *adapt)
                adapt->HalFunc.sreset_init_value(adapt);
 }
 
-u8   rtw_hal_sreset_get_wifi_status(struct adapter *adapt)
-{
-       u8 status = 0;
-
-       if (adapt->HalFunc.sreset_get_wifi_status)
-               status = adapt->HalFunc.sreset_get_wifi_status(adapt);
-       return status;
-}
-
 void rtw_hal_notch_filter(struct adapter *adapter, bool enable)
 {
        if (adapter->HalFunc.hal_notch_filter)
index 9191993dd3f56363d4efb2c535703c8fea94e3af..3b476d80f64d68430fb1c24f40a5adb5e3a0ba2f 100644 (file)
@@ -304,8 +304,6 @@ void        rtw_hal_write_rfreg(struct adapter *padapter,
                            enum rf_radio_path eRFPath, u32 RegAddr,
                            u32 BitMask, u32 Data);
 
-s32    rtw_hal_interrupt_handler(struct adapter *padapter);
-
 void   rtw_hal_set_bwmode(struct adapter *padapter,
                           enum ht_channel_width Bandwidth, u8 Offset);
 void   rtw_hal_set_chan(struct adapter *padapter, u8 channel);
@@ -317,7 +315,6 @@ void        rtw_hal_antdiv_rssi_compared(struct adapter *padapter,
                                     struct wlan_bssid_ex *src);
 
 void rtw_hal_sreset_init(struct adapter *padapter);
-u8   rtw_hal_sreset_get_wifi_status(struct adapter *padapter);
 
 void rtw_hal_notch_filter(struct adapter *adapter, bool enable);
 void rtw_hal_reset_security_engine(struct adapter *adapter);