staging: rtlwifi: Replace 0 with false.
authorBhagyashri Dighole <digholebhagyashri@gmail.com>
Thu, 14 Mar 2019 12:18:03 +0000 (17:48 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 18 Mar 2019 06:06:03 +0000 (07:06 +0100)
Replace 0 with false, Bool intializations should use true or false.
Detected by Coccinelle semantic patch boolinit.cocci.

Signed-off-by: Bhagyashri Dighole <digholebhagyashri@gmail.com>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtlwifi/btcoexist/halbtcoutsrc.c

index b519d18..9198189 100644 (file)
@@ -830,7 +830,7 @@ static void halbtc_display_wifi_status(struct btc_coexist *btcoexist,
        dc_mode = true; /*TODO*/
        under_ips = rtlpriv->psc.inactive_pwrstate == ERFOFF ? 1 : 0;
        under_lps = rtlpriv->psc.dot11_psmode == EACTIVE ? 0 : 1;
-       low_power = 0; /*TODO*/
+       low_power = false; /*TODO*/
        seq_printf(m, "\n %-35s = %s%s%s%s",
                   "Power Status",
                   (dc_mode ? "DC mode" : "AC mode"),