wifi: rt2x00: simplify rt2x00crypto_rx_insert_iv()
authorDmitry Antipov <dmantipov@yandex.ru>
Thu, 19 Oct 2023 07:06:09 +0000 (10:06 +0300)
committerKalle Valo <kvalo@kernel.org>
Thu, 18 Jan 2024 13:07:19 +0000 (15:07 +0200)
commit173b0fb47c3dbd1e489cb449422c1037076a66d7
treeaff2892a95b9620dc3fc9f5a80ce216e0eec3487
parent50180c7f8e3de7c2d87f619131776598fcb1478d
wifi: rt2x00: simplify rt2x00crypto_rx_insert_iv()

In 'rt2x00crypto_rx_insert_iv()', added alignment can't exceed 3
bytes and ICV size is either 4 or 8 bytes, so skb space adjustment
may be simplified. Compile tested only.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

Signed-off-by: Dmitry Antipov <dmantipov@yandex.ru>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://msgid.link/20231019070750.17911-1-dmantipov@yandex.ru
drivers/net/wireless/ralink/rt2x00/rt2x00crypto.c