libertas_tf: Fix warning in lbtf_rx for stats struct
authorPrarit Bhargava <prarit@redhat.com>
Thu, 10 Jun 2010 12:08:42 +0000 (08:08 -0400)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 14 Jun 2010 19:04:29 +0000 (15:04 -0400)
commit13deb23a52c13053fc509f119eb80b903c65a879
tree25b9555ed789ae51b762083b667cbdcebbfe48b7
parentb561e8274f75831ee87e4ea378cbb1f9f050a51a
libertas_tf: Fix warning in lbtf_rx for stats struct

Fixes linux-2.6 warning:

drivers/net/wireless/libertas_tf/main.c: In function 'lbtf_rx':
drivers/net/wireless/libertas_tf/main.c:578: warning: 'stats.antenna' is used uninitialized in this function
drivers/net/wireless/libertas_tf/main.c:578: warning: 'stats.mactime' is used uninitialized in this function

stats struct needs to be set to 0 before use.

Signed-off-by: Prarit Bhargava <prarit@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/libertas_tf/main.c