staging: rtl8188eu: remove hal_init_macaddr()
authorMichael Straube <straube.linux@gmail.com>
Sat, 22 Jun 2019 15:14:49 +0000 (17:14 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 Jun 2019 01:50:51 +0000 (09:50 +0800)
Function hal_init_macaddr() just calls rtw_hal_set_hwreg().
Use rtw_hal_set_hwreg() directly and remove hal_init_macaddr().

Signed-off-by: Michael Straube <straube.linux@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/hal/hal_com.c
drivers/staging/rtl8188eu/hal/usb_halinit.c
drivers/staging/rtl8188eu/include/hal_com.h

index ff481fbd074cb7b5873f08c044a320ac3e674caa..95f1b1431373f9c711b88de92f1d573f15bbd078 100644 (file)
@@ -283,9 +283,3 @@ bool hal_mapping_out_pipe(struct adapter *adapter, u8 numoutpipe)
        }
        return result;
 }
-
-void hal_init_macaddr(struct adapter *adapter)
-{
-       rtw_hal_set_hwreg(adapter, HW_VAR_MAC_ADDR,
-                         adapter->eeprompriv.mac_addr);
-}
index 69008accb01511ee56e61ad12107d110ca865565..ac555205075286ccfb326850805fe1d5f1876341 100644 (file)
@@ -746,7 +746,8 @@ u32 rtl8188eu_hal_init(struct adapter *Adapter)
        _InitDriverInfoSize(Adapter, DRVINFO_SZ);
 
        _InitInterrupt(Adapter);
-       hal_init_macaddr(Adapter);/* set mac_address */
+       rtw_hal_set_hwreg(Adapter, HW_VAR_MAC_ADDR,
+                         Adapter->eeprompriv.mac_addr);
        _InitNetworkType(Adapter);/* set msr */
        _InitWMACSetting(Adapter);
        _InitAdaptiveCtrl(Adapter);
index 2f7bdade40a5996b58066af59740a27f05b4580b..93cbbe7ba1fd645a447999d07a9accf93d8b5d58 100644 (file)
@@ -148,5 +148,4 @@ void hal_set_brate_cfg(u8 *brates, u16 *rate_cfg);
 
 bool hal_mapping_out_pipe(struct adapter *adapter, u8 numoutpipe);
 
-void hal_init_macaddr(struct adapter *adapter);
 #endif /* __HAL_COMMON_H__ */