staging: rtl8723au: Eliminate write-once variable xmit_priv->vcs_setting
authorJes Sorensen <Jes.Sorensen@redhat.com>
Fri, 10 Oct 2014 19:41:29 +0000 (21:41 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 20 Oct 2014 02:30:14 +0000 (10:30 +0800)
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723au/core/rtw_xmit.c
drivers/staging/rtl8723au/include/rtw_xmit.h
drivers/staging/rtl8723au/os_dep/os_intfs.c

index 6c75794..8994bd8 100644 (file)
@@ -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;
index 134ad6e..70cd4b6 100644 (file)
@@ -295,7 +295,6 @@ struct      xmit_priv {
 
        struct rtw_adapter      *adapter;
 
-       u8   vcs_setting;
        u8      vcs;
 
        u64     tx_bytes;
index 19cb11b..ddd0a9f 100644 (file)
@@ -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;