trivial: drivers/staging/rtl8821ae/rtl8821ae: Fix closing brace followed by if
PATCH 1/1 trivial: drivers/staging/rtl8821ae/rtl8821ae: Fix closing brace followed by if
All of the code is #if 0'd out, and the change just replaces a space with a newline, so this obviously doesn't change anything.
However, the code is highly suspect: The b_c2h_bt_inquiry_page member has type bool, and applying the ++ operator to a bool is equivalent to setting it true (using -- is equivalent to flipping it).
--- drivers/staging/rtl8821ae/rtl8821ae/hal_btc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/staging/rtl8821ae/rtl8821ae/hal_btc.c +2 -1
@@ -1711,7 +1711,8 @@ void rtl8821ae_dm_bt_inq_page_monitor(struct ieee80211_hw *hw)if (hal_coex_8821ae.b_c2h_bt_inquiry_page) { hal_coex_8821ae.b_c2h_bt_inquiry_page++;// bt inquiry or page is started. - }if (hal_coex_8821ae.b_c2h_bt_inquiry_page) { + } +if (hal_coex_8821ae.b_c2h_bt_inquiry_page) { rtlpcipriv->btcoexist.current_state |=BT_COEX_STATE_BT_INQ_PAGE ;if (hal_coex_8821ae.bt_inquiry_page_cnt >=4 ) hal_coex_8821ae.bt_inquiry_page_cnt =0 ;
Signature · 1 line
1.9.2
Greg Kroah-Hartman
maintainerQuoted 2 lines · Rasmus Villemoes
All of the code is #if 0'd out, and the change just replaces a space with a newline, so this obviously doesn't change anything.
How about just deleting all the #if 0 code out entirely so no one has to worry about it anymore?
thanks,
greg k-h
Quoted 6 lines · Greg Kroah-Hartman
Quoted 2 lines · Rasmus Villemoes
All of the code is #if 0'd out, and the change just replaces a space with a newline, so this obviously doesn't change anything.
How about just deleting all the #if 0 code out entirely so no one has to worry about it anymore?
Fine by me. Like this?
From: Rasmus Villemoes <[email protected]>
Subject: [PATCH] drivers/staging/rtl8821ae/rtl8821ae: Remove dead code
This is all #if 0'ed out, and it contains some rather weird stuff (post-increment of a bool, for example). Nuke it.
--- drivers/staging/rtl8821ae/rtl8821ae/hal_btc.c | 14 -------------- 1 file changed, 14 deletions(-)
drivers/staging/rtl8821ae/rtl8821ae/hal_btc.c +0 -14
@@ -1706,20 +1706,6 @@ void rtl8821ae_dm_bt_inq_page_monitor(struct ieee80211_hw *hw) rtlpcipriv->btcoexist.current_state &=~BT_COEX_STATE_BT_INQ_PAGE ; } } - -#if 0 -if (hal_coex_8821ae.b_c2h_bt_inquiry_page) { - hal_coex_8821ae.b_c2h_bt_inquiry_page++; -// bt inquiry or page is started. - }if (hal_coex_8821ae.b_c2h_bt_inquiry_page) { - rtlpcipriv->btcoexist.current_state |=BT_COEX_STATE_BT_INQ_PAGE ; -if (hal_coex_8821ae.bt_inquiry_page_cnt >=4 ) - hal_coex_8821ae.bt_inquiry_page_cnt =0 ; - hal_coex_8821ae.bt_inquiry_page_cnt++; - }else { - rtlpcipriv->btcoexist.current_state &=~BT_COEX_STATE_BT_INQ_PAGE ; - } -#endif }void rtl8821ae_dm_bt_reset_action_profile_state (struct ieee80211_hw *hw)
Signature · 1 line
1.9.2
Greg Kroah-Hartman
maintainerQuoted 11 lines · Rasmus Villemoes
Quoted 6 lines · Greg Kroah-Hartman
Quoted 2 lines · Rasmus Villemoes
All of the code is #if 0'd out, and the change just replaces a space with a newline, so this obviously doesn't change anything.
How about just deleting all the #if 0 code out entirely so no one has to worry about it anymore?
Fine by me. Like this?
Quoted 7 lines
From: Rasmus Villemoes <[email protected]>
Subject: [PATCH]drivers/staging/rtl8821ae/rtl8821ae: Remove dead codeThis is all #if 0'ed out, and it contains some rather weird stuff (post-increment of a bool, for example). Nuke it.
Signed-off-by Rasmus Villemoes <[email protected]>
Looks good, if you send it in a stand-along email, I can even apply it :)
thanks,
greg k-h