staging: rtl8723bs: Use boolean false instead of integer 0
authorErick Karanja <karanja99erick@gmail.com>
Fri, 11 Apr 2025 08:54:25 +0000 (11:54 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 15 Apr 2025 14:30:14 +0000 (16:30 +0200)
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 <karanja99erick@gmail.com>
Link: https://lore.kernel.org/r/20250411085425.44177-1-karanja99erick@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/hal/odm_DIG.c

index 97a51546463a69ed536da25f1b503c88c55e3fec..1e2946a23bebdafdf3cdd76973fcd2eb63e7185f 100644 (file)
@@ -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;