Return-path: Received: from mail-gh0-f174.google.com ([209.85.160.174]:40309 "EHLO mail-gh0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752813Ab2FYPb3 convert rfc822-to-8bit (ORCPT ); Mon, 25 Jun 2012 11:31:29 -0400 MIME-Version: 1.0 In-Reply-To: <1340637550-12669-1-git-send-email-aletes.xgr@gmail.com> References: <1340637550-12669-1-git-send-email-aletes.xgr@gmail.com> Date: Mon, 25 Jun 2012 21:01:28 +0530 Message-ID: (sfid-20120625_173209_613750_54A351D6) Subject: Re: [PATCH] mac80211: fix build warning From: Mohammed Shafi To: Alexandre Pereira da Silva Cc: "John W. Linville" , Johannes Berg , "David S. Miller" , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-wireless-owner@vger.kernel.org List-ID: Hi, On Mon, Jun 25, 2012 at 8:49 PM, Alexandre Pereira da Silva wrote: > Fix: > net/mac80211/mlme.c: In function 'ieee80211_prep_connection': > net/mac80211/mlme.c:3035:19: warning: 'sta' may be used uninitialized in > this function > > Initialize sta to NULL i think already fixed by and there in wireless-testing http://www.spinics.net/lists/linux-wireless/msg92385.html > > Signed-off-by: Alexandre Pereira da Silva > --- > ?net/mac80211/mlme.c | ? ?2 +- > ?1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c > index 91d84cc..cfe6b43 100644 > --- a/net/mac80211/mlme.c > +++ b/net/mac80211/mlme.c > @@ -3032,7 +3032,7 @@ static int ieee80211_prep_connection(struct ieee80211_sub_if_data *sdata, > ? ? ? ?struct ieee80211_local *local = sdata->local; > ? ? ? ?struct ieee80211_if_managed *ifmgd = &sdata->u.mgd; > ? ? ? ?struct ieee80211_bss *bss = (void *)cbss->priv; > - ? ? ? struct sta_info *sta; > + ? ? ? struct sta_info *sta = NULL; > ? ? ? ?bool have_sta = false; > ? ? ? ?int err; > ? ? ? ?int ht_cfreq; > -- > 1.7.10 > > -- > To unsubscribe from this list: send the line "unsubscribe linux-wireless" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at ?http://vger.kernel.org/majordomo-info.html -- thanks, shafi