From: Ping-Ke Shih <pkshih@xxxxxxxxxxx> Patch 2635664e6e4a: ("rtlwifi: Add rx ampdu cfg for btcoexist.") leads to the following static checker warning: drivers/net/wireless/realtek/rtlwifi/base.c:1664 rtl_rx_ampdu_apply() error: uninitialized symbol 'reject_agg'. Reported-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx> Fixes: 2635664e6e4a: ("rtlwifi: Add rx ampdu cfg for btcoexist.") Cc: Stable <stable@xxxxxxxxxxxxxxx> # v4.12+ Signed-off-by: Ping-Ke Shih <pkshih@xxxxxxxxxxx> Signed-off-by: Larry Finger <Larry.Finger@xxxxxxxxxxxx> --- drivers/net/wireless/realtek/rtlwifi/base.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/realtek/rtlwifi/base.c b/drivers/net/wireless/realtek/rtlwifi/base.c index c145cfe27216..d7a1e2d2d529 100644 --- a/drivers/net/wireless/realtek/rtlwifi/base.c +++ b/drivers/net/wireless/realtek/rtlwifi/base.c @@ -1731,7 +1731,7 @@ int rtl_tx_agg_oper(struct ieee80211_hw *hw, void rtl_rx_ampdu_apply(struct rtl_priv *rtlpriv) { struct rtl_btc_ops *btc_ops = rtlpriv->btcoexist.btc_ops; - u8 reject_agg, ctrl_agg_size = 0, agg_size; + u8 reject_agg = 0, ctrl_agg_size = 0, agg_size = 0; if (rtlpriv->cfg->ops->get_btc_status()) btc_ops->btc_get_ampdu_cfg(rtlpriv, &reject_agg, -- 2.12.3