staging: rtl8723bs: Use boolean false instead of integer 0
PATCH 1/1 staging: rtl8723bs: Use boolean false instead of integer 0
In the struct definition, adaptivity_flag is defined as type 'bool'. This change replaces the integer literal 0 with the boolean constant false to match the declared type. It ensures semantic correctness, and aligns with kernel coding conventions that prefer true/false over 1/0 for bool types.
found by coccinelle
Signed-off-by Erick Karanja <[email protected]>
--- drivers/staging/rtl8723bs/hal/odm_DIG.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/rtl8723bs/hal/odm_DIG.c +1 -1
@@ -56,7 +56,7 @@ void odm_NHMBBInit(void *pDM_VOID) {struct dm_odm_t *pDM_Odm = (struct dm_odm_t *)pDM_VOID; - pDM_Odm->adaptivity_flag =0 ; + pDM_Odm->adaptivity_flag = false; pDM_Odm->tolerance_cnt =3 ; pDM_Odm->NHMLastTxOkcnt =0 ; pDM_Odm->NHMLastRxOkcnt =0 ;
Signature · 1 line
2.43.0