]> git.baikalelectronics.ru Git - kernel.git/commit
staging: r8188eu: use proper type for second argiment of rtw_(aes|tkip|wep)_(decrypt...
authorIvan Safonov <insafonov@gmail.com>
Sun, 26 Jul 2020 21:02:46 +0000 (00:02 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 28 Jul 2020 08:05:33 +0000 (10:05 +0200)
commit49a3bbe241cc0ce4d88b15a023e752ef5a51a508
tree560d926092bb23e40f4bd559310b70101f9c9e31
parentef0740cffcec50cb7387b713b10ce7803ef5dde8
staging: r8188eu: use proper type for second argiment of rtw_(aes|tkip|wep)_(decrypt|encrypt)

rtw_aes_decrypt, rtw_tkip_decrypt, rtw_wep_decrypt, rtw_aes_encrypt,
rtw_tkip_encrypt, rtw_wep_encrypt are takes (u8 *) second argiment and
always uses it as (struct recv_frame *) or (struct xmit_frame *).
This is causes a lot of unnecessary type casts
and complicates refactoring.

Signed-off-by: Ivan Safonov <insafonov@gmail.com>
Link: https://lore.kernel.org/r/20200726210246.68633-1-insafonov@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/core/rtw_mlme_ext.c
drivers/staging/rtl8188eu/core/rtw_recv.c
drivers/staging/rtl8188eu/core/rtw_security.c
drivers/staging/rtl8188eu/core/rtw_xmit.c
drivers/staging/rtl8188eu/include/rtw_security.h