staging: r8188eu: simplify update_sta_support_rate params
authorMartin Kaiser <martin@kaiser.cx>
Sat, 26 Nov 2022 16:01:25 +0000 (17:01 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 5 Dec 2022 12:28:58 +0000 (13:28 +0100)
commit02b51d08ec3a0f476c8b1537faa46e35e87e5ce0
treeaa92d9938b1bc5aeeaa0fc82e7e73aba4a7faf88
parent018da8b60688caec763d75cc6fb022a165028cea
staging: r8188eu: simplify update_sta_support_rate params

The update_sta_support_rate function takes a pointer to information
elements and the total length of all these elements. Use our variables
for pointer and length instead of calculating them manually.

Tested-by: Philipp Hortmann <philipp.g.hortmann@gmail.com> # Edimax N150
Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Link: https://lore.kernel.org/r/20221126160129.178697-7-martin@kaiser.cx
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/core/rtw_mlme_ext.c