aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorPrarit Bhargava <prarit@redhat.com>2010-06-10 08:08:42 -0400
committerJohn W. Linville <linville@tuxdriver.com>2010-06-14 15:04:29 -0400
commit13deb23a52c13053fc509f119eb80b903c65a879 (patch)
tree25b9555ed789ae51b762083b667cbdcebbfe48b7 /drivers/net
parentb561e8274f75831ee87e4ea378cbb1f9f050a51a (diff)
downloadkernel_samsung_espresso10-13deb23a52c13053fc509f119eb80b903c65a879.zip
kernel_samsung_espresso10-13deb23a52c13053fc509f119eb80b903c65a879.tar.gz
kernel_samsung_espresso10-13deb23a52c13053fc509f119eb80b903c65a879.tar.bz2
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>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/wireless/libertas_tf/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/libertas_tf/main.c b/drivers/net/wireless/libertas_tf/main.c
index 6a04c21..817fffc 100644
--- a/drivers/net/wireless/libertas_tf/main.c
+++ b/drivers/net/wireless/libertas_tf/main.c
@@ -549,7 +549,7 @@ int lbtf_rx(struct lbtf_private *priv, struct sk_buff *skb)
prxpd = (struct rxpd *) skb->data;
- stats.flag = 0;
+ memset(&stats, 0, sizeof(stats));
if (!(prxpd->status & cpu_to_le16(MRVDRV_RXPD_STATUS_OK)))
stats.flag |= RX_FLAG_FAILED_FCS_CRC;
stats.freq = priv->cur_freq;