staging: r8188eu: remove the pframe variable
authorMartin Kaiser <martin@kaiser.cx>
Thu, 2 Jun 2022 19:37:25 +0000 (21:37 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 6 Jun 2022 06:08:36 +0000 (08:08 +0200)
commit979315ccedf45ba5b74313c463f9d94b87411932
tree2bf85cb7a233a8818cb59457d36a51a321f48ec2
parentd8f2cff63249fdf7f2cf78e70344613db1fc4e53
staging: r8188eu: remove the pframe variable

Remove the pframe variable, it is no longer used for populating fields of
the outgoing frame.

pmgntframe->buf_addr is already a u8 *, we can drop the (u8 *) cast.

Increment the u8 *pmgntframe->buf_addr by TXDESC_OFFSET before we cast
it to struct ieee80211_mgmt *.

Tested-by: Pavel Skripkin <paskripkin@gmail.com>
Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Link: https://lore.kernel.org/r/20220602193726.280922-11-martin@kaiser.cx
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/core/rtw_mlme_ext.c