Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp1087008pxb; Fri, 27 Aug 2021 00:30:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwrTbL44A9Wd4G3WScdNr32d3KHeToRZ9jaaQNj6Z3b4cEjtIHIv6xxol+jV0j1BtU3FERf X-Received: by 2002:a17:906:31cf:: with SMTP id f15mr8722115ejf.272.1630049400399; Fri, 27 Aug 2021 00:30:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630049400; cv=none; d=google.com; s=arc-20160816; b=cJn0kj85/nEqcdAEZsggL9DCjBPAg6oqlxHRtqfyPKBdFse8LuQsC6jmrPsNJ3iwbY Cg/vKK1NjKe+CSUANwu9MiO2q1NEMPjwJnMcSeNFfjo+HkvAYhZXddvTXifQmfsEVmfe /aciqVemEamU76fe/2klSrr6C6PYlIbHXZW+RLdVW6TxAhZAj5DSRlp9HgVjVSY5F7xd z6PgGS6/cUH4hYarHEgzSmSebzAgKtJNRF7MG8Da7aniPg9HicXeb9JWvKV6/WpGvBUO JQ1UFJKLu2gGP236JLt9mVfJ4JbRc+hJc+YJQDZE101sUH+KweL6JCNSBq8ddI+UqvoX j9Tw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=KNM0hK7OCJe9172P9m4yLGYUrqcJXhzGQGS/nsHhDv8=; b=B8KkFJFy+YfLnIDpdJRUGnCS0EA8FnnntY9gvENl4MP/UChg76LWSUUMSqRyU++X4T WknQPmYpSt0HwMfn3IatxFt1ujOQ8yn4HT4MBIzV36f+UhzpM71Xj7Fr88G6htw98TYY NpLMSUlLAyNm5IWVsTlFBSDrvKpjJiZ86xwNMWfmzKrNTGs1nPB6rv7ZJ7lN6Onw4mMT LXmGOi0DepAQMaaTEqMTTQ6MayriTT/Xr4y1rjwiWlP2fPSdwlT9a4ywq4CdiRIpKxar VXxnhEcJyYK5e9gdEvy3NRYp69ZEF1LP5ZGVkyb2UOUkcdrKUw4SK4PhKv3n+BMm1CEY Uiig== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y12si5787139edd.393.2021.08.27.00.29.33; Fri, 27 Aug 2021 00:30:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244441AbhH0H0q (ORCPT + 99 others); Fri, 27 Aug 2021 03:26:46 -0400 Received: from mailgw01.mediatek.com ([60.244.123.138]:41828 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S244307AbhH0H0o (ORCPT ); Fri, 27 Aug 2021 03:26:44 -0400 X-UUID: 4a4e095ec80340c19b7208d101e7bf8b-20210827 X-UUID: 4a4e095ec80340c19b7208d101e7bf8b-20210827 Received: from mtkcas10.mediatek.inc [(172.21.101.39)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 977623185; Fri, 27 Aug 2021 15:25:51 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs05n2.mediatek.inc (172.21.101.140) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 27 Aug 2021 15:25:50 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Fri, 27 Aug 2021 15:25:49 +0800 From: Ryder Lee To: Felix Fietkau CC: Lorenzo Bianconi , Shayne Chen , Evelyn Tsai , , , Ryder Lee Subject: [PATCH] mt76: mt7915: fix 'nrates' is uninitialized when used here Date: Fri, 27 Aug 2021 15:25:38 +0800 Message-ID: <6bacb2514f00d8483d24f60e232718923f16890c.1630048924.git.ryder.lee@mediatek.com> X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org drivers/net/wireless/mediatek/mt76/mt7915/mcu.c:2105:3: warning: variable 'nrates' is uninitialized when used here [-Wuninitialized] Fixes: 48469214f50c ("mt76: mt7915: rework .set_bitrate_mask() to support more options") Reported-by: kernel test robot Signed-off-by: Ryder Lee --- drivers/net/wireless/mediatek/mt76/mt7915/mcu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/mediatek/mt76/mt7915/mcu.c b/drivers/net/wireless/mediatek/mt76/mt7915/mcu.c index 8141a42b2d0b..4e6d9e20cc00 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7915/mcu.c +++ b/drivers/net/wireless/mediatek/mt76/mt7915/mcu.c @@ -2092,7 +2092,7 @@ mt7915_mcu_add_rate_ctrl_fixed(struct mt7915_dev *dev, struct cfg80211_bitrate_mask *mask = &mvif->bitrate_mask; enum nl80211_band band = chandef->chan->band; struct sta_phy phy = {}; - int ret, nrates; + int ret, nrates = 0; #define __sta_phy_bitrate_mask_check(_mcs, _gi, _he) \ do { \ -- 2.29.2