Re: [PATCH] staging: rtl8723bs: use unaligned access macros in rtw_security.c
From: Ethan Tidmore
Date: Sun Feb 01 2026 - 22:44:09 EST
On Fri Jan 30, 2026 at 1:51 AM CST, Archit Anant wrote:
> 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@xxxxxxxxx>
Looks good to me.
Reviewed-by: Ethan Tidmore <ethantidmore06@xxxxxxxxx>
ET