staging: rtl8723bs: modify struct field to use standard bool type
authorAbraham Samuel Adekunle <abrahamadekunle50@gmail.com>
Fri, 4 Apr 2025 08:20:39 +0000 (09:20 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 15 Apr 2025 14:28:08 +0000 (16:28 +0200)
commitc994aa4db445d5af7c8c5c8bf82dea544eebfd1f
tree5873eea8568773d51b838caf17a0be39a4955ed3
parent90bccdb4821c6b94214b33984113ecea00ac0e67
staging: rtl8723bs: modify struct field to use standard bool type

The struct sta_info field ieee8021x_blocked uses the uint values
0 and 1 to represent false and true values respectively.

Convert cases to use the bool type instead to ensure consistency
with other parts of the containing code where true or false have
been used.

This change causes the struct field to change size from a 32bit to
an 8bit. However, the change is safe to make because the sta_info
struct is not read from the hardware.

Reported by Coccinelle.

Signed-off-by: Abraham Samuel Adekunle <abrahamadekunle50@gmail.com>
Link: https://lore.kernel.org/r/Z++WV1132FCULn+0@HP-650
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/core/rtw_ap.c
drivers/staging/rtl8723bs/include/sta_info.h