rtlwifi: rtl8188ee: initialize packet_beacon
authorColin Ian King <colin.king@canonical.com>
Mon, 21 Apr 2014 16:38:44 +0000 (17:38 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 May 2014 11:59:45 +0000 (13:59 +0200)
commit0e357717f96ec2ce26ee16fb648bc505ff1b1a82
tree8279434ce5f58f6551f2d7e54a33153ea8c49192
parent7037ead4a60cc4f30fb9a72475718ea821497f52
rtlwifi: rtl8188ee: initialize packet_beacon

commit 328e203fc35f0b4f6df1c4943f74cf553bcc04f8 upstream.

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>
Acked-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/wireless/rtlwifi/rtl8188ee/trx.c