]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
rtlwifi: btcoexist: remove redundant variable fw_ps_state
authorColin Ian King <colin.king@canonical.com>
Tue, 9 Jan 2018 16:43:29 +0000 (16:43 +0000)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 16 Jan 2018 15:59:13 +0000 (17:59 +0200)
Variable fw_ps_state is assigned a value but it is never read, hence
it is redundant and can be removed.

Cleans up clang warning:
drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtcoutsrc.c:736:2:
warning: Value stored to 'fw_ps_state' is never read

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtcoutsrc.c

index 5f3eda31187a2cc61d2ddeb9b8bb06e74fd20e73..873bf9303d5dbc883d9e6cf2cd542a08a657c355 100644 (file)
@@ -677,7 +677,7 @@ static void halbtc_display_wifi_status(struct btc_coexist *btcoexist,
        u32 wifi_link_status = 0x0;
        bool bt_hs_on = false, under_ips = false, under_lps = false;
        bool low_power = false, dc_mode = false;
-       u8 wifi_chnl = 0, wifi_hs_chnl = 0, fw_ps_state;
+       u8 wifi_chnl = 0, wifi_hs_chnl = 0;
        u8 ap_num = 0;
 
        wifi_link_status = halbtc_get_wifi_link_status(btcoexist);
@@ -733,7 +733,6 @@ 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;
-       fw_ps_state = 0;
        low_power = 0; /*TODO*/
        seq_printf(m, "\n %-35s = %s%s%s%s",
                   "Power Status",