From patchwork Thu Jan 8 07:04:15 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "Xue, Ying" X-Patchwork-Id: 5591151 Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id CCCBA9F2ED for ; Thu, 8 Jan 2015 07:04:31 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 056D120374 for ; Thu, 8 Jan 2015 07:04:31 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2C4EB2037D for ; Thu, 8 Jan 2015 07:04:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753074AbbAHHEX (ORCPT ); Thu, 8 Jan 2015 02:04:23 -0500 Received: from mail.windriver.com ([147.11.1.11]:34918 "EHLO mail.windriver.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752943AbbAHHEX (ORCPT ); Thu, 8 Jan 2015 02:04:23 -0500 Received: from ALA-HCB.corp.ad.wrs.com (ala-hcb.corp.ad.wrs.com [147.11.189.41]) by mail.windriver.com (8.14.9/8.14.5) with ESMTP id t0874IuO009441 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=FAIL); Wed, 7 Jan 2015 23:04:19 -0800 (PST) Received: from ying.corp.ad.wrs.com (128.224.163.180) by ALA-HCB.corp.ad.wrs.com (147.11.189.41) with Microsoft SMTP Server id 14.3.174.1; Wed, 7 Jan 2015 23:04:18 -0800 From: Ying Xue To: CC: , Subject: [PATCH net-next] mac80211: silent build warnings Date: Thu, 8 Jan 2015 15:04:15 +0800 Message-ID: <1420700655-9427-1-git-send-email-ying.xue@windriver.com> X-Mailer: git-send-email 1.7.9.5 MIME-Version: 1.0 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, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable 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 Silent the following build warnings: net/mac80211/mlme.c: In function ‘ieee80211_rx_mgmt_beacon’: net/mac80211/mlme.c:1348:3: warning: ‘pwr_level_cisco’ may be used uninitialized in this function [-Wuninitialized] net/mac80211/mlme.c:1315:6: note: ‘pwr_level_cisco’ was declared here Signed-off-by: Ying Xue --- 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 2c36c47..13b5506 100644 --- a/net/mac80211/mlme.c +++ b/net/mac80211/mlme.c @@ -1312,7 +1312,7 @@ static u32 ieee80211_handle_pwr_constr(struct ieee80211_sub_if_data *sdata, { bool has_80211h_pwr = false, has_cisco_pwr = false; int chan_pwr = 0, pwr_reduction_80211h = 0; - int pwr_level_cisco, pwr_level_80211h; + int pwr_level_cisco = 0, pwr_level_80211h = 0; int new_ap_level; if (country_ie && pwr_constr_ie &&