rtlwifi: rtl8188ee: initialize packet_beacon
authorColin Ian King <colin.king@canonical.com>
Mon, 21 Apr 2014 16:38:44 +0000 (17:38 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 22 Apr 2014 18:09:37 +0000 (14:09 -0400)
commit328e203fc35f0b4f6df1c4943f74cf553bcc04f8
treecdcd0f96ab79a46252aa698f04d6df5405aa6060
parent929f84b975448db900f3463000fafcd021ed261a
rtlwifi: rtl8188ee: initialize packet_beacon

static code analysis from cppcheck reports:

[drivers/net/wireless/rtlwifi/rtl8188ee/trx.c:322]:
  (error) Uninitialized variable: packet_beacon

packet_beacon is not initialized and hence packet_beacon
contains garbage from the stack, so set it to false.

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Cc: Stable <stable@vger.kernel.org> [3.10+]
Acked-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rtlwifi/rtl8188ee/trx.c