提交 02632342 编写于 作者: D David Decotigny 提交者: Greg Kroah-Hartman

staging: rtl8723au: core: remove redundant endianness conversion

Source and destination have the same little-endian annotation: this
patch removes incorrect byte-swap on non-LE cpus.

This addresses the following sparse warning:
drivers/staging/rtl8723au/core/rtw_mlme_ext.c:3911:56: warning: incorrect type in argument 1 (different base types)
drivers/staging/rtl8723au/core/rtw_mlme_ext.c:3911:56:    expected unsigned short [unsigned] [usertype] val
drivers/staging/rtl8723au/core/rtw_mlme_ext.c:3911:56:    got restricted __le16 [usertype] BA_timeout_value
Signed-off-by: NDavid Decotigny <ddecotig@gmail.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 af17b56d
......@@ -3906,8 +3906,8 @@ void issue_action_BA23a(struct rtw_adapter *padapter,
put_unaligned_le16(BA_para_set,
&mgmt->u.action.u.addba_resp.capab);
put_unaligned_le16(pmlmeinfo->ADDBA_req.BA_timeout_value,
&mgmt->u.action.u.addba_resp.timeout);
mgmt->u.action.u.addba_resp.timeout
= pmlmeinfo->ADDBA_req.BA_timeout_value;
pattrib->pktlen += 8;
break;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册