staging: rtl8723au: Eliminate write-once variable xmit_priv->vcs_setting
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
0ceb7b15e8
commit
70b88f5b36
|
@ -1295,7 +1295,7 @@ void rtw_update_protection23a(struct rtw_adapter *padapter, u8 *ie, uint ie_len)
|
|||
uint protection;
|
||||
const u8 *p;
|
||||
|
||||
switch (pxmitpriv->vcs_setting) {
|
||||
switch (pregistrypriv->vrtl_carrier_sense) {
|
||||
case DISABLE_VCS:
|
||||
pxmitpriv->vcs = NONE_VCS;
|
||||
break;
|
||||
|
|
|
@ -295,7 +295,6 @@ struct xmit_priv {
|
|||
|
||||
struct rtw_adapter *adapter;
|
||||
|
||||
u8 vcs_setting;
|
||||
u8 vcs;
|
||||
|
||||
u64 tx_bytes;
|
||||
|
|
|
@ -387,7 +387,6 @@ static int rtw_init_default_value(struct rtw_adapter *padapter)
|
|||
int ret = _SUCCESS;
|
||||
|
||||
/* xmit_priv */
|
||||
pxmitpriv->vcs_setting = pregistrypriv->vrtl_carrier_sense;
|
||||
pxmitpriv->vcs = pregistrypriv->vcs_type;
|
||||
/* pxmitpriv->rts_thresh = pregistrypriv->rts_thresh; */
|
||||
pxmitpriv->frag_len = pregistrypriv->frag_thresh;
|
||||
|
|
Loading…
Reference in New Issue