From patchwork Tue Nov 5 19:17:04 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Pedersen X-Patchwork-Id: 3143481 Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 6B8AEBEEB2 for ; Tue, 5 Nov 2013 19:23:25 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5F300205B3 for ; Tue, 5 Nov 2013 19:23:24 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 49F7C2058D for ; Tue, 5 Nov 2013 19:23:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755493Ab3KETXP (ORCPT ); Tue, 5 Nov 2013 14:23:15 -0500 Received: from mail-pd0-f169.google.com ([209.85.192.169]:48627 "EHLO mail-pd0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755462Ab3KETXK (ORCPT ); Tue, 5 Nov 2013 14:23:10 -0500 Received: by mail-pd0-f169.google.com with SMTP id q10so9020368pdj.14 for ; Tue, 05 Nov 2013 11:23:09 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=ApNhAlrZjW/RRTB/Ufqq8QVcrkTdkTkkfU9xbeBogn4=; b=TAh2hrO/mzzt0u2IZQueY2fflpU6RQG7ZT1J1mtanfLrPNny9HQwVzyzNW8TGPByaq 9d0KBV2+E8l2a/8un3lFjwyDz+bikY20YrxmjevJeOxqRIXJXzgSHk6bIsI42G6KUE1J Qa6HQdjiryzE75ak18szCl1m/Y0U+T5R9FxQkLv+raiM+WSORjFpRrB/u2Vq01pCDFfP 7AcVXfYtvON9V+HVdh4O2LUhHYfGLj2w68yYSkWRyPojjWSwXPSoXSxeBepFE/zEPBJ4 7bnIaf4PQGQkDw4qTgG01Dojd4s25bsOCcALOVrrg7UZu9evzPAiKxab9JC57/Ixn9GO AD1g== X-Gm-Message-State: ALoCoQns7KY4snlpesmcB1dYAeuOiHAfkl6pQr1v961WcFzeOGwnDwLENlMFyC0qAMF7kuYqRcl4 X-Received: by 10.68.143.196 with SMTP id sg4mr9363760pbb.155.1383679389436; Tue, 05 Nov 2013 11:23:09 -0800 (PST) Received: from cable.cozybit (70-35-43-50.static.wiline.com. [70.35.43.50]) by mx.google.com with ESMTPSA id de1sm36237294pbc.7.2013.11.05.11.23.07 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 05 Nov 2013 11:23:08 -0800 (PST) From: Thomas Pedersen To: Johannes Berg Cc: Bob Copeland , linux-wireless , open80211s , Thomas Pedersen Subject: [PATCH 16/17] mac80211: initialize llid Date: Tue, 5 Nov 2013 11:17:04 -0800 Message-Id: <1383679025-7150-16-git-send-email-thomas@cozybit.com> X-Mailer: git-send-email 1.8.4.rc3 In-Reply-To: <1383679025-7150-1-git-send-email-thomas@cozybit.com> References: <1383679025-7150-1-git-send-email-thomas@cozybit.com> Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP If the peer doesn't have an llid for us, the event gathering function won't use it anyway (based on frametype), but initialize it so gcc and coverity don't complain. Signed-off-by: Thomas Pedersen --- net/mac80211/mesh_plink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/mac80211/mesh_plink.c b/net/mac80211/mesh_plink.c index c6d0917..e0528b9 100644 --- a/net/mac80211/mesh_plink.c +++ b/net/mac80211/mesh_plink.c @@ -960,7 +960,7 @@ mesh_process_plink_frame(struct ieee80211_sub_if_data *sdata, enum ieee80211_self_protected_actioncode ftype; u32 changed = 0; u8 ie_len = elems->peering_len; - __le16 plid, llid; + __le16 plid, llid = 0; if (!elems->peering) { mpl_dbg(sdata,