staging: rtl8723au: Do not byteswap timeout twice
authorJes Sorensen <Jes.Sorensen@redhat.com>
Sun, 22 Mar 2015 23:09:44 +0000 (19:09 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 23 Mar 2015 21:40:30 +0000 (22:40 +0100)
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723au/core/rtw_mlme_ext.c

index cafc82dd1ee9b9cabde1a6f661a34fe4afbe50f4..1267268de3492875c8ef0580f951e8589b7297d1 100644 (file)
@@ -3767,7 +3767,6 @@ void issue_action_BA23a(struct rtw_adapter *padapter,
 {
        u16 start_seq;
        u16 BA_para_set;
-       u16 BA_timeout_value;
        u16 BA_starting_seqctrl;
        u16 BA_para;
        int max_rx_ampdu_factor;
@@ -3848,10 +3847,8 @@ void issue_action_BA23a(struct rtw_adapter *padapter,
                put_unaligned_le16(BA_para_set,
                                   &mgmt->u.action.u.addba_req.capab);
 
-               BA_timeout_value = 5000;/*  5ms */
-               BA_timeout_value = cpu_to_le16(BA_timeout_value);
-               put_unaligned_le16(BA_timeout_value,
-                                  &mgmt->u.action.u.addba_req.timeout);
+               /*  5ms */
+               put_unaligned_le16(5000, &mgmt->u.action.u.addba_req.timeout);
 
                psta = rtw_get_stainfo23a(pstapriv, raddr);
                if (psta) {