staging: rtl8821ae: don't initialise statics to 0 or NULL in halbtc8192e2ant.c
authorMark Einon <mark@einon.net>
Sat, 19 Apr 2014 14:35:50 +0000 (15:35 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 25 Apr 2014 22:47:34 +0000 (15:47 -0700)
Fixes all checkpatch errors reporting that statics shouldn't be initialised
to their defualt values.

Signed-off-by: Mark Einon <mark@einon.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8821ae/btcoexist/halbtc8192e2ant.c

index 244b3c6255d2ae42124579f895b7456782ea957b..81706f4087f07a83e380256fb1d116eca781dac4 100644 (file)
@@ -236,8 +236,8 @@ static u8 halbtc8192e2ant_wifirssi_state(struct btc_coexist *btcoexist,
 
 static void halbtc8192e2ant_monitor_bt_enable_disable(struct btc_coexist *btcoexist)
 {
-       static bool pre_bt_disabled = false;
-       static u32 bt_disable_cnt = 0;
+       static bool pre_bt_disabled;
+       static u32 bt_disable_cnt;
        bool bt_active = true, bt_disabled = false;
 
        /* This function check if bt is disabled */
@@ -505,8 +505,8 @@ static void halbtc8192e2ant_querybt_info(struct btc_coexist *btcoexist)
 
 static bool halbtc8192e2ant_iswifi_status_changed(struct btc_coexist *btcoexist)
 {
-       static bool pre_wifi_busy = false;
-       static bool pre_under_4way = false, pre_bt_hson = false;
+       static bool pre_wifi_busy;
+       static bool pre_under_4way, pre_bt_hson;
        bool wifi_busy = false, under_4way = false, bt_hson = false;
        bool wifi_connected = false;
 
@@ -4118,7 +4118,7 @@ void ex_halbtc8192e2ant_halt_notify(struct btc_coexist *btcoexist)
 
 void ex_halbtc8192e2ant_periodical(struct btc_coexist *btcoexist)
 {
-       static u8 dis_ver_info_cnt = 0;
+       static u8 dis_ver_info_cnt;
        u32 fw_ver = 0, bt_patch_ver = 0;
        struct btc_board_info *board_info = &btcoexist->board_info;
        struct btc_stack_info *stack_info = &btcoexist->stack_info;