Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9fe7b29c authored by Luca Ceresoli's avatar Luca Ceresoli Committed by Greg Kroah-Hartman
Browse files

staging: rtl8188eu: remove unused field bRxRSSIDisplay in struct adapter



Since commit da25a8ec ("staging: rtl8188eu: remove unused
debugging functions") this field is never set set to any nonzero
value, so it is actually always zero.

It is also used only once, as a boolean inside an if(). This means the
code under that if() is dead code, so remove it as well.

Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Larry Finger <Larry.Finger@lwfinger.net>
Cc: Ivan Safonov <insafonov@gmail.com>
Cc: devel@driverdev.osuosl.org
Signed-off-by: default avatarLuca Ceresoli <luca@lucaceresoli.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 7d2af82c
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -4715,9 +4715,6 @@ void linked_status_chk(struct adapter *padapter)
	struct mlme_ext_info	*pmlmeinfo = &(pmlmeext->mlmext_info);
	struct sta_priv		*pstapriv = &padapter->stapriv;

	if (padapter->bRxRSSIDisplay)
		_linked_rx_signal_strehgth_display(padapter);

	if (is_client_associated_to_ap(padapter)) {
		/* linked infrastructure client mode */

+0 −1
Original line number Diff line number Diff line
@@ -168,7 +168,6 @@ struct adapter {
	u8 bFWReady;
	u8 bReadPortCancel;
	u8 bWritePortCancel;
	u8 bRxRSSIDisplay;

	struct mutex hw_init_mutex;
};
+0 −2
Original line number Diff line number Diff line
@@ -413,7 +413,6 @@ static u8 rtw_init_default_value(struct adapter *padapter)
	/* misc. */
	padapter->bReadPortCancel = false;
	padapter->bWritePortCancel = false;
	padapter->bRxRSSIDisplay = 0;
	return _SUCCESS;
}

@@ -426,7 +425,6 @@ u8 rtw_reset_drv_sw(struct adapter *padapter)
	rtw_hal_def_value_init(padapter);
	padapter->bReadPortCancel = false;
	padapter->bWritePortCancel = false;
	padapter->bRxRSSIDisplay = 0;
	pmlmepriv->scan_interval = SCAN_INTERVAL;/*  30*2 sec = 60sec */

	padapter->xmitpriv.tx_pkts = 0;