From patchwork Thu Jun 10 12:08:42 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Prarit Bhargava X-Patchwork-Id: 105377 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o5AC8mB8019742 for ; Thu, 10 Jun 2010 12:08:48 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758863Ab0FJMIq (ORCPT ); Thu, 10 Jun 2010 08:08:46 -0400 Received: from mx1.redhat.com ([209.132.183.28]:60283 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758838Ab0FJMIq (ORCPT ); Thu, 10 Jun 2010 08:08:46 -0400 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o5AC8jjp006956 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 10 Jun 2010 08:08:45 -0400 Received: from prarit.bos.redhat.com (prarit.bos.redhat.com [10.16.16.23]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o5AC8g5f001500; Thu, 10 Jun 2010 08:08:44 -0400 Date: Thu, 10 Jun 2010 08:08:42 -0400 From: Prarit Bhargava To: linux-wireless@vger.kernel.org, linville@tuxdriver.com Cc: Prarit Bhargava Message-Id: <20100610120209.27952.91383.sendpatchset@prarit.bos.redhat.com> Subject: [PATCH]: libertas_tf: Fix warning in lbtf_rx for stats struct X-Scanned-By: MIMEDefang 2.67 on 10.5.11.11 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Thu, 10 Jun 2010 12:08:48 +0000 (UTC) diff --git a/drivers/net/wireless/libertas_tf/main.c b/drivers/net/wireless/libertas_tf/main.c index 019431d..52d7c5c 100644 --- a/drivers/net/wireless/libertas_tf/main.c +++ b/drivers/net/wireless/libertas_tf/main.c @@ -488,7 +488,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;