Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1428956pxb; Wed, 4 Nov 2020 08:40:32 -0800 (PST) X-Google-Smtp-Source: ABdhPJzQXC+lkaRUCgtngwlvDRWCugr7eNN2WswT0uPBDysrJv3imdeDi5QoyZ7eRH49S3rdjlZL X-Received: by 2002:a17:906:86c7:: with SMTP id j7mr25021855ejy.301.1604508032379; Wed, 04 Nov 2020 08:40:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604508032; cv=none; d=google.com; s=arc-20160816; b=oGRGBu+R97ahcAGnUWLAlGLMJjEwMHNebRoHnr4ah15UbCrFUPwWnjIZaM+7L+wnLe 6p/KpNPSTFUS2niXN17HoHDvV9VEnqsu8IlY74v9IdM3cXXf91AT7gevdcj5xjxY87d0 KvmOi6fkN/DVD50kDcGHleqzLe0v81+4HUT18yZso46CYdwExeaAT4Mh6OoRxHu55pwX svI4g1juHDg9VjxustOzCuAfpIc6lXsGNduwYaaVyM7kKSNb/tABWLK5wwtT/sprY8ot B416xGbCQUqW2caWg3EPVvaj1gWbGWw5e65ht1NtBDOI+/YJX5syvZqExtl22TW3c7au aYAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from:dmarc-filter :sender:dkim-signature; bh=1XYLgMPABe4QxwAMK9SD52nZ5EyovaPg6rw6a4fcNHo=; b=U2/1OB897hqbZ50nJaEVGSp+CNOy+JGk3nLXxgwoujCeW5xZB8AIBM+iSDCpPZJmWv S8Ww3L+ApchDwwy0FTkdb+LkzWczKdhnHx/spQh9UMaFMpsz79RIhag7V8QrzQBklmqW Opf5d1sBPX6sI4AlOBtu4gQ3uxCizyDBohSa2Pc0tDzo1Ly7ay0IB77VO12H/uexAD8B 1USQ6w3yzJik3YPN9eM2dk+uyktWetkoN1ORIgbQhobOoqa/tlHkmtXs41Bky21o0RmQ 6Oo0TsPais5QsAUuOoRmKlSVDnJsdA51TmNAJnRYZY7BuMZK48AOsAx5V4ttVAsmlQhG tdHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=QBCK5diZ; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bx3si1812799ejb.709.2020.11.04.08.40.06; Wed, 04 Nov 2020 08:40:32 -0800 (PST) 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; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=QBCK5diZ; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727285AbgKDQhy (ORCPT + 99 others); Wed, 4 Nov 2020 11:37:54 -0500 Received: from z5.mailgun.us ([104.130.96.5]:56585 "EHLO z5.mailgun.us" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726344AbgKDQhy (ORCPT ); Wed, 4 Nov 2020 11:37:54 -0500 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1604507873; h=Message-Id: Date: Subject: Cc: To: From: Sender; bh=1XYLgMPABe4QxwAMK9SD52nZ5EyovaPg6rw6a4fcNHo=; b=QBCK5diZRgPETZ/F7OkF+v6mX4FtTug4bv6Uv+o4ANw3SYUaHyNaim6QzFxMQX3/sSYH/Ulm F9jmAIQ0QtosJhD3xj9QdiSx6DLratWS5Ye3cebB0fN1GAfbF42/WvEQgn1DR3GFyDyYyVnz wuXlV70/IfWzFG3AWBZKS5r89aU= X-Mailgun-Sending-Ip: 104.130.96.5 X-Mailgun-Sid: WyI3YTAwOSIsICJsaW51eC13aXJlbGVzc0B2Z2VyLmtlcm5lbC5vcmciLCAiYmU5ZTRhIl0= Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n01.prod.us-east-1.postgun.com with SMTP id 5fa2d8cc524c7ffb3d95ad10 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Wed, 04 Nov 2020 16:37:32 GMT Sender: tamizhr=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 16ACDC433C9; Wed, 4 Nov 2020 16:37:32 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=ALL_TRUSTED,BAYES_00,SPF_FAIL, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from tamizhr-linux.qualcomm.com (blr-c-bdr-fw-01_GlobalNAT_AllZones-Outside.qualcomm.com [103.229.19.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: tamizhr) by smtp.codeaurora.org (Postfix) with ESMTPSA id F242EC433C6; Wed, 4 Nov 2020 16:37:29 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org F242EC433C6 Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=fail smtp.mailfrom=tamizhr@codeaurora.org From: Tamizh chelvam To: ath10k@lists.infradead.org Cc: linux-wireless@vger.kernel.org, Tamizh Chelvam Subject: [PATCH] ath10k: fix compilation warning Date: Wed, 4 Nov 2020 22:07:17 +0530 Message-Id: <1604507837-29361-1-git-send-email-tamizhr@codeaurora.org> X-Mailer: git-send-email 2.7.4 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Tamizh Chelvam This change fixes below compilation warning. smatch warnings: drivers/net/wireless/ath/ath10k/mac.c:9125 ath10k_mac_op_set_tid_config() error: uninitialized symbol 'ret'. No functional changes. Compile tested only. Reported-by: kernel test robot Reported-by: Dan Carpenter Signed-off-by: Tamizh Chelvam --- drivers/net/wireless/ath/ath10k/mac.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/ath10k/mac.c b/drivers/net/wireless/ath/ath10k/mac.c index 12edb1b..9f3224d 100644 --- a/drivers/net/wireless/ath/ath10k/mac.c +++ b/drivers/net/wireless/ath/ath10k/mac.c @@ -9182,10 +9182,11 @@ static int ath10k_mac_op_set_tid_config(struct ieee80211_hw *hw, goto exit; } + ret = 0; + if (sta) goto exit; - ret = 0; arvif->tids_rst = 0; data.curr_vif = vif; data.ar = ar; -- 1.9.1