staging: rtl8723bs: remove hal_btcoex_GetDBG() function
authorFabio Aiuto <fabioaiuto83@gmail.com>
Fri, 30 Apr 2021 14:56:52 +0000 (16:56 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 10 May 2021 09:19:37 +0000 (11:19 +0200)
remove unused hal_btcoex_GetDBG() function definition and
prototype.

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

index cac2d60..02d9997 100644 (file)
@@ -1492,126 +1492,3 @@ void hal_btcoex_DisplayBtCoexInfo(struct adapter *padapter, u8 *pbuf, u32 bufsiz
        DBG_BT_INFO_INIT(pinfo, NULL, 0);
 }
 
-u32 hal_btcoex_GetDBG(struct adapter *padapter, u8 *pStrBuf, u32 bufSize)
-{
-       s32 count;
-       u8 *pstr;
-       u32 leftSize;
-
-
-       if (!pStrBuf || bufSize == 0)
-               return 0;
-
-       pstr = pStrBuf;
-       leftSize = bufSize;
-
-       count = rtw_sprintf(pstr, leftSize, "#define DBG\t%d\n", DBG);
-       if ((count < 0) || (count >= leftSize))
-               goto exit;
-       pstr += count;
-       leftSize -= count;
-
-       count = rtw_sprintf(pstr, leftSize, "BTCOEX Debug Setting:\n");
-       if ((count < 0) || (count >= leftSize))
-               goto exit;
-       pstr += count;
-       leftSize -= count;
-
-       count = rtw_sprintf(pstr, leftSize,
-               "INTERFACE / ALGORITHM: 0x%08X / 0x%08X\n\n",
-               GLBtcDbgType[BTC_MSG_INTERFACE],
-               GLBtcDbgType[BTC_MSG_ALGORITHM]);
-       if ((count < 0) || (count >= leftSize))
-               goto exit;
-       pstr += count;
-       leftSize -= count;
-
-       count = rtw_sprintf(pstr, leftSize, "INTERFACE Debug Setting Definition:\n");
-       if ((count < 0) || (count >= leftSize))
-               goto exit;
-       pstr += count;
-       leftSize -= count;
-       count = rtw_sprintf(pstr, leftSize, "\tbit[0]=%d for INTF_INIT\n",
-               (GLBtcDbgType[BTC_MSG_INTERFACE] & INTF_INIT) ? 1 : 0);
-       if ((count < 0) || (count >= leftSize))
-               goto exit;
-       pstr += count;
-       leftSize -= count;
-       count = rtw_sprintf(pstr, leftSize, "\tbit[2]=%d for INTF_NOTIFY\n\n",
-               (GLBtcDbgType[BTC_MSG_INTERFACE] & INTF_NOTIFY) ? 1 : 0);
-       if ((count < 0) || (count >= leftSize))
-               goto exit;
-       pstr += count;
-       leftSize -= count;
-
-       count = rtw_sprintf(pstr, leftSize, "ALGORITHM Debug Setting Definition:\n");
-       if ((count < 0) || (count >= leftSize))
-               goto exit;
-       pstr += count;
-       leftSize -= count;
-       count = rtw_sprintf(pstr, leftSize, "\tbit[0]=%d for BT_RSSI_STATE\n",
-               (GLBtcDbgType[BTC_MSG_ALGORITHM] & ALGO_BT_RSSI_STATE) ? 1 : 0);
-       if ((count < 0) || (count >= leftSize))
-               goto exit;
-       pstr += count;
-       leftSize -= count;
-       count = rtw_sprintf(pstr, leftSize, "\tbit[1]=%d for WIFI_RSSI_STATE\n",
-               (GLBtcDbgType[BTC_MSG_ALGORITHM] & ALGO_WIFI_RSSI_STATE) ? 1 : 0);
-       if ((count < 0) || (count >= leftSize))
-               goto exit;
-       pstr += count;
-       leftSize -= count;
-       count = rtw_sprintf(pstr, leftSize, "\tbit[2]=%d for BT_MONITOR\n",
-               (GLBtcDbgType[BTC_MSG_ALGORITHM] & ALGO_BT_MONITOR) ? 1 : 0);
-       if ((count < 0) || (count >= leftSize))
-               goto exit;
-       pstr += count;
-       leftSize -= count;
-       count = rtw_sprintf(pstr, leftSize, "\tbit[3]=%d for TRACE\n",
-               (GLBtcDbgType[BTC_MSG_ALGORITHM] & ALGO_TRACE) ? 1 : 0);
-       if ((count < 0) || (count >= leftSize))
-               goto exit;
-       pstr += count;
-       leftSize -= count;
-       count = rtw_sprintf(pstr, leftSize, "\tbit[4]=%d for TRACE_FW\n",
-               (GLBtcDbgType[BTC_MSG_ALGORITHM] & ALGO_TRACE_FW) ? 1 : 0);
-       if ((count < 0) || (count >= leftSize))
-               goto exit;
-       pstr += count;
-       leftSize -= count;
-       count = rtw_sprintf(pstr, leftSize, "\tbit[5]=%d for TRACE_FW_DETAIL\n",
-               (GLBtcDbgType[BTC_MSG_ALGORITHM] & ALGO_TRACE_FW_DETAIL) ? 1 : 0);
-       if ((count < 0) || (count >= leftSize))
-               goto exit;
-       pstr += count;
-       leftSize -= count;
-       count = rtw_sprintf(pstr, leftSize, "\tbit[6]=%d for TRACE_FW_EXEC\n",
-               (GLBtcDbgType[BTC_MSG_ALGORITHM] & ALGO_TRACE_FW_EXEC) ? 1 : 0);
-       if ((count < 0) || (count >= leftSize))
-               goto exit;
-       pstr += count;
-       leftSize -= count;
-       count = rtw_sprintf(pstr, leftSize, "\tbit[7]=%d for TRACE_SW\n",
-               (GLBtcDbgType[BTC_MSG_ALGORITHM] & ALGO_TRACE_SW) ? 1 : 0);
-       if ((count < 0) || (count >= leftSize))
-               goto exit;
-       pstr += count;
-       leftSize -= count;
-       count = rtw_sprintf(pstr, leftSize, "\tbit[8]=%d for TRACE_SW_DETAIL\n",
-               (GLBtcDbgType[BTC_MSG_ALGORITHM] & ALGO_TRACE_SW_DETAIL) ? 1 : 0);
-       if ((count < 0) || (count >= leftSize))
-               goto exit;
-       pstr += count;
-       leftSize -= count;
-       count = rtw_sprintf(pstr, leftSize, "\tbit[9]=%d for TRACE_SW_EXEC\n",
-               (GLBtcDbgType[BTC_MSG_ALGORITHM] & ALGO_TRACE_SW_EXEC) ? 1 : 0);
-       if ((count < 0) || (count >= leftSize))
-               goto exit;
-       pstr += count;
-       leftSize -= count;
-
-exit:
-       count = pstr - pStrBuf;
-
-       return count;
-}
index 9048499..eb9d0ba 100644 (file)
@@ -53,6 +53,5 @@ u8 hal_btcoex_LpsVal(struct adapter *);
 u32 hal_btcoex_GetRaMask(struct adapter *);
 void hal_btcoex_RecordPwrMode(struct adapter *padapter, u8 *pCmdBuf, u8 cmdLen);
 void hal_btcoex_DisplayBtCoexInfo(struct adapter *, u8 *pbuf, u32 bufsize);
-u32 hal_btcoex_GetDBG(struct adapter *, u8 *pStrBuf, u32 bufSize);
 
 #endif /*  !__HAL_BTCOEX_H__ */