staging: rtl8821ae: Remove declaration assignment to zero
We set btrssi to zero and then immediately assign it. Assign it on declaration instead. Signed-off-by: Mark Einon <mark@einon.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
09c6e8794f
commit
6149647db3
1 changed files with 1 additions and 3 deletions
|
@ -39,11 +39,9 @@ static u32 glcoex_ver_8192e_2ant = 0x34;
|
||||||
static u8 halbtc8192e2ant_btrssi_state(u8 level_num, u8 rssi_thresh,
|
static u8 halbtc8192e2ant_btrssi_state(u8 level_num, u8 rssi_thresh,
|
||||||
u8 rssi_thresh1)
|
u8 rssi_thresh1)
|
||||||
{
|
{
|
||||||
int btrssi=0;
|
int btrssi = coex_sta->bt_rssi;
|
||||||
u8 btrssi_state = coex_sta->pre_bt_rssi_state;
|
u8 btrssi_state = coex_sta->pre_bt_rssi_state;
|
||||||
|
|
||||||
btrssi = coex_sta->bt_rssi;
|
|
||||||
|
|
||||||
if (level_num == 2) {
|
if (level_num == 2) {
|
||||||
if ((coex_sta->pre_bt_rssi_state == BTC_RSSI_STATE_LOW) ||
|
if ((coex_sta->pre_bt_rssi_state == BTC_RSSI_STATE_LOW) ||
|
||||||
(coex_sta->pre_bt_rssi_state == BTC_RSSI_STATE_STAY_LOW)) {
|
(coex_sta->pre_bt_rssi_state == BTC_RSSI_STATE_STAY_LOW)) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue