staging: rtl8723bs: remove unnecessary halbtcoutsrc_DbgInit() function
authorFabio Aiuto <fabioaiuto83@gmail.com>
Fri, 30 Apr 2021 14:56:53 +0000 (16:56 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 10 May 2021 09:19:38 +0000 (11:19 +0200)
halbtcoutsrc_DbgInit() static function was intended for
manual activation of private tracing facilities.

So remove it.

Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Fabio Aiuto <fabioaiuto83@gmail.com>
Link: https://lore.kernel.org/r/f6c4f680b2d0ee8850f97532ca76dd405c1d50c3.1619794331.git.fabioaiuto83@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/hal/hal_btcoex.c

index 02d9997094f2ba4e03c806d48c5d51383f4e54f3..fd26187a976a40f073586cd66a981262066d95eb 100644 (file)
@@ -75,32 +75,6 @@ static u8 halbtcoutsrc_IsBtCoexistAvailable(struct btc_coexist *pBtCoexist)
        return true;
 }
 
-static void halbtcoutsrc_DbgInit(void)
-{
-       u8 i;
-
-       for (i = 0; i < BTC_MSG_MAX; i++)
-               GLBtcDbgType[i] = 0;
-
-       GLBtcDbgType[BTC_MSG_INTERFACE]                 =       \
-/*                     INTF_INIT                                                               | */
-/*                     INTF_NOTIFY                                                     | */
-                       0;
-
-       GLBtcDbgType[BTC_MSG_ALGORITHM]                 =       \
-/*                     ALGO_BT_RSSI_STATE                                      | */
-/*                     ALGO_WIFI_RSSI_STATE                                    | */
-/*                     ALGO_BT_MONITOR                                         | */
-/*                     ALGO_TRACE                                                      | */
-/*                     ALGO_TRACE_FW                                           | */
-/*                     ALGO_TRACE_FW_DETAIL                            | */
-/*                     ALGO_TRACE_FW_EXEC                                      | */
-/*                     ALGO_TRACE_SW                                           | */
-/*                     ALGO_TRACE_SW_DETAIL                            | */
-/*                     ALGO_TRACE_SW_EXEC                                      | */
-                       0;
-}
-
 static void halbtcoutsrc_LeaveLps(struct btc_coexist *pBtCoexist)
 {
        struct adapter *padapter;
@@ -919,8 +893,6 @@ void hal_btcoex_Initialize(void *padapter)
 
        /* pBtCoexist->statistics.cntBind++; */
 
-       halbtcoutsrc_DbgInit();
-
        pBtCoexist->chipInterface = BTC_INTF_SDIO;
 
        EXhalbtcoutsrc_BindBtCoexWithAdapter(padapter);