]> git.ipfire.org Git - thirdparty/linux.git/commit
staging: rtl8723bs: replace FIELD_OFFSET usage with offsetof in rtw_mlme_ext.c
authorNavaneeth K <knavaneeth786@gmail.com>
Tue, 25 Nov 2025 11:20:58 +0000 (11:20 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 Nov 2025 13:21:02 +0000 (14:21 +0100)
commitd82c5681dfe6392a26719b6a7bb53bd86f6db063
tree7c4bb34b9193f7d79bd5176f3afe53a4ab7427d3
parent2cbcfd3fce6f80374bfab1288d1f77eabb0bf48f
staging: rtl8723bs: replace FIELD_OFFSET usage with offsetof in rtw_mlme_ext.c

Replace usage of the custom FIELD_OFFSET macro with the standard
offsetof() macro in rtw_mlme_ext.c. This improves code readability
and uses the kernel's standard mechanism.

Signed-off-by: Navaneeth K <knavaneeth786@gmail.com>
Reviewed-by: Dan Carpenter <dan.carpenter@linaro.org>
Link: https://patch.msgid.link/20251125112059.16913-5-knavaneeth786@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/core/rtw_mlme_ext.c