summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/rtlwifi/rtl8192de/trx.c
diff options
context:
space:
mode:
authorCong Ding <dinggnu@gmail.com>2013-01-19 13:56:36 +0100
committerJohn W. Linville <linville@tuxdriver.com>2013-01-22 22:01:30 +0100
commiteee569e403861392dc693ab984ede5f0610dde29 (patch)
treeec15c17d074d5f77c537cb2c75fcbc168d196906 /drivers/net/wireless/rtlwifi/rtl8192de/trx.c
parentiwlegacy: don't return zero on failure paths in il4965_pci_probe() (diff)
downloadlinux-eee569e403861392dc693ab984ede5f0610dde29.tar.xz
linux-eee569e403861392dc693ab984ede5f0610dde29.zip
net: wireless/rtlwifi: fix uninitialized variable issue
The use of variable packet_beacon might be uninitialized in the three files. Signed-off-by: Cong Ding <dinggnu@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/rtlwifi/rtl8192de/trx.c')
-rw-r--r--drivers/net/wireless/rtlwifi/rtl8192de/trx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/rtlwifi/rtl8192de/trx.c b/drivers/net/wireless/rtlwifi/rtl8192de/trx.c
index f9f3861046c1..3c8754e9b394 100644
--- a/drivers/net/wireless/rtlwifi/rtl8192de/trx.c
+++ b/drivers/net/wireless/rtlwifi/rtl8192de/trx.c
@@ -452,7 +452,7 @@ static void _rtl92de_translate_rx_signal_stuff(struct ieee80211_hw *hw,
u8 *praddr;
u16 type, cfc;
__le16 fc;
- bool packet_matchbssid, packet_toself, packet_beacon;
+ bool packet_matchbssid, packet_toself, packet_beacon = false;
tmp_buf = skb->data + pstats->rx_drvinfo_size + pstats->rx_bufshift;
hdr = (struct ieee80211_hdr *)tmp_buf;