]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
rtw88: fix uninitialized 'tim_offset' warning
authorPo-Hao Huang <phhuang@realtek.com>
Wed, 20 Apr 2022 09:30:57 +0000 (17:30 +0800)
committerKalle Valo <kvalo@kernel.org>
Sat, 23 Apr 2022 12:46:53 +0000 (15:46 +0300)
This avoids below warning and makes compiler happy.
error: uninitialized symbol 'tim_offset'

Signed-off-by: Po-Hao Huang <phhuang@realtek.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20220420093058.31646-1-pkshih@realtek.com
drivers/net/wireless/realtek/rtw88/fw.c

index c1af2704bb866a1a0e578081b79941173e0b69fb..3545d51c6951ab5a930b4e71513c314de1726a1f 100644 (file)
@@ -1047,7 +1047,7 @@ static struct sk_buff *rtw_get_rsvd_page_skb(struct ieee80211_hw *hw,
        struct rtw_vif *rtwvif;
        struct sk_buff *skb_new;
        struct cfg80211_ssid *ssid;
-       u16 tim_offset;
+       u16 tim_offset = 0;
 
        if (rsvd_pkt->type == RSVD_DUMMY) {
                skb_new = alloc_skb(1, GFP_KERNEL);