Skip to content

Commit

Permalink
staging: rtl8723bs: linked_info_dump() is not used
Browse files Browse the repository at this point in the history
The function linked_info_dump() is not used anywhere, remove it.

Signed-off-by: Michael Straube <[email protected]>
Reviewed-by: Hans de Goede <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
MichaelStraube authored and gregkh committed Mar 16, 2023
1 parent f89a163 commit 1558280
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 22 deletions.
21 changes: 0 additions & 21 deletions drivers/staging/rtl8723bs/hal/hal_com.c
Original file line number Diff line number Diff line change
Expand Up @@ -897,27 +897,6 @@ void rtw_hal_check_rxfifo_full(struct adapter *adapter)
}
}

void linked_info_dump(struct adapter *padapter, u8 benable)
{
struct pwrctrl_priv *pwrctrlpriv = adapter_to_pwrctl(padapter);

if (padapter->bLinkInfoDump == benable)
return;

if (benable) {
pwrctrlpriv->org_power_mgnt = pwrctrlpriv->power_mgnt;/* keep org value */
rtw_pm_set_lps(padapter, PS_MODE_ACTIVE);

pwrctrlpriv->ips_org_mode = pwrctrlpriv->ips_mode;/* keep org value */
rtw_pm_set_ips(padapter, IPS_NONE);
} else {
rtw_pm_set_ips(padapter, pwrctrlpriv->ips_org_mode);

rtw_pm_set_lps(padapter, pwrctrlpriv->ips_org_mode);
}
padapter->bLinkInfoDump = benable;
}

#ifdef DBG_RX_SIGNAL_DISPLAY_RAW_DATA
void rtw_get_raw_rssi_info(void *sel, struct adapter *padapter)
{
Expand Down
1 change: 0 additions & 1 deletion drivers/staging/rtl8723bs/include/hal_com.h
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,6 @@ bool eqNByte(u8 *str1, u8 *str2, u32 num);

bool GetU1ByteIntegerFromStringInDecimal(char *str, u8 *in);

void linked_info_dump(struct adapter *padapter, u8 benable);
#ifdef DBG_RX_SIGNAL_DISPLAY_RAW_DATA
void rtw_get_raw_rssi_info(void *sel, struct adapter *padapter);
void rtw_store_phy_info(struct adapter *padapter, union recv_frame *prframe);
Expand Down

0 comments on commit 1558280

Please sign in to comment.