]> git.ipfire.org Git - thirdparty/linux.git/commit
staging: rtl8723bs: use unaligned access macros in rtw_security.c
authorArchit Anant <architanant5@gmail.com>
Fri, 30 Jan 2026 07:51:13 +0000 (13:21 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 7 Feb 2026 13:20:51 +0000 (14:20 +0100)
commit17d2ff404153a616b4b9426a46021c199fe69568
tree6caec0525c698fa810a0685e0cf4b706285d3ee5
parent02df7c635bd3463abcd92414e32a2cb906089e72
staging: rtl8723bs: use unaligned access macros in rtw_security.c

The driver defines custom functions secmicgetuint32() and
secmicputuint32() to handle little-endian byte-to-integer conversion.
This is redundant as the kernel provides optimized standard macros for
this purpose in <linux/unaligned.h>.

Replace the custom implementations with get_unaligned_le32() and
put_unaligned_le32() and delete the now-unused local functions.

Signed-off-by: Archit Anant <architanant5@gmail.com>
Reviewed-by: Ethan Tidmore <ethantidmore06@gmail.com>
Link: https://patch.msgid.link/20260130075113.34666-1-architanant5@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/core/rtw_security.c