]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7c87d9bda59cfe7269e2292f4a5ee598bbab4ebe
tree25b9555ed789ae51b762083b667cbdcebbfe48b7
parent1ce580b611deecb326bc9f55952f3543a5af01b8
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