Commit 5332a5e0 authored by Mark Einon's avatar Mark Einon Committed by Greg Kroah-Hartman

staging: rtl8821ae: don't initialise statics to 0 or NULL in halbtc8192e2ant.c

Fixes all checkpatch errors reporting that statics shouldn't be initialised
to their defualt values.
Signed-off-by: default avatarMark Einon <mark@einon.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 7801e8d6
...@@ -236,8 +236,8 @@ static u8 halbtc8192e2ant_wifirssi_state(struct btc_coexist *btcoexist, ...@@ -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 void halbtc8192e2ant_monitor_bt_enable_disable(struct btc_coexist *btcoexist)
{ {
static bool pre_bt_disabled = false; static bool pre_bt_disabled;
static u32 bt_disable_cnt = 0; static u32 bt_disable_cnt;
bool bt_active = true, bt_disabled = false; bool bt_active = true, bt_disabled = false;
/* This function check if bt is disabled */ /* This function check if bt is disabled */
...@@ -505,8 +505,8 @@ static void halbtc8192e2ant_querybt_info(struct btc_coexist *btcoexist) ...@@ -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 halbtc8192e2ant_iswifi_status_changed(struct btc_coexist *btcoexist)
{ {
static bool pre_wifi_busy = false; static bool pre_wifi_busy;
static bool pre_under_4way = false, pre_bt_hson = false; static bool pre_under_4way, pre_bt_hson;
bool wifi_busy = false, under_4way = false, bt_hson = false; bool wifi_busy = false, under_4way = false, bt_hson = false;
bool wifi_connected = false; bool wifi_connected = false;
...@@ -4118,7 +4118,7 @@ void ex_halbtc8192e2ant_halt_notify(struct btc_coexist *btcoexist) ...@@ -4118,7 +4118,7 @@ void ex_halbtc8192e2ant_halt_notify(struct btc_coexist *btcoexist)
void ex_halbtc8192e2ant_periodical(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; u32 fw_ver = 0, bt_patch_ver = 0;
struct btc_board_info *board_info = &btcoexist->board_info; struct btc_board_info *board_info = &btcoexist->board_info;
struct btc_stack_info *stack_info = &btcoexist->stack_info; struct btc_stack_info *stack_info = &btcoexist->stack_info;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment