From patchwork Wed Jun 12 10:49:13 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maharaja Kennadyrajan X-Patchwork-Id: 10989379 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 8DB421395 for ; Wed, 12 Jun 2019 10:48:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 782CA28426 for ; Wed, 12 Jun 2019 10:48:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6CB98287B3; Wed, 12 Jun 2019 10:48:10 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 271272894B for ; Wed, 12 Jun 2019 10:48:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=4axAmIigdgLy9l54LOKSL1MNI3TxiHDdQZzhr+CDOyU=; b=hBKtWiANswtrtzqUIPtyGFqD0k qvRuoOJ9ut69LEElDbjYhcWdtJ0/lnlyH1YDPqj1dJaQmSYnC7Ja3By7Vm1F8aX1rNcE7bJItUOa4 qoFNTVa0C1WlcpENXDDgiY6tWzHnjX6zLkUFe90EgnlEtJaVx2XEhG8Lbk1pfGB/NWc8KUu1X4eJK /wWn3NSn7wk/TrEAmNj5fe5YFrIMd2FPGMcjOBSy2RfPqD7V8UkezE8cUAtXXHcEvn4O3BiHgqPZO 3KTfx2FsK3OX39SYVFH3bJ47F20XQvE6lgN7eO4kxEt7oIVfBa6UfxoZP3U8v0lHTJISoWvS2EzR9 X1neaKiw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hb0nZ-0000LQ-3b; Wed, 12 Jun 2019 10:48:09 +0000 Received: from smtp.codeaurora.org ([198.145.29.96]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hb0nW-0000If-G8 for ath11k@lists.infradead.org; Wed, 12 Jun 2019 10:48:07 +0000 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id A2FCB6079C; Wed, 12 Jun 2019 10:48:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1560336486; bh=uwAnuvOzlD227iKh1swM9BrRjQ7iORDalM+PE8Wgr+Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bZo7Rs0G10rkKSKgf0oiPow4E55VvdlGs4XnRg8Q1so7F2jzgE4a3DIMqFemxCYxg qqzBzlLf0T2KAZjI7IqFXG+60zmL7MLqdLcMiyfGGc1lGBpChUojKGu1NeY12PI/s4 4AuWHqdsexzGPQExcvwRUs8wxoMy975UbuijYAd4= Received: from che-swdbs-01.qca.qualcomm.com (blr-c-bdr-fw-01_globalnat_allzones-outside.qualcomm.com [103.229.19.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: mkenna@codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 681D560CEC; Wed, 12 Jun 2019 10:47:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1560336479; bh=uwAnuvOzlD227iKh1swM9BrRjQ7iORDalM+PE8Wgr+Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=M4FqCdjrmFzpbbS1LRLSHrA1Q6XtJ9QiZDFOC6w/NVkUDdrKEBTn96bfRQnDlKiGd ex5CjSGowoS9oW4wpnmwyg5M3AxaiGH7EE6RTEpJfR5JfeL6hFxnJQm43WA4ByQQky 8VVzQoDoP737aBSu4qS3aeZhJTv3BMwpNMFehEL8= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 681D560CEC Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=mkenna@codeaurora.org From: Maharaja Kennadyrajan To: ath11k@lists.infradead.org Subject: [PATCH] ath11k: Avoid unnecessary WARN_ON() in ath11k_dp_tx_complete_msdu() Date: Wed, 12 Jun 2019 16:19:13 +0530 Message-Id: <1560336554-14420-6-git-send-email-mkenna@codeaurora.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1560336554-14420-1-git-send-email-mkenna@codeaurora.org> References: <1560336554-14420-1-git-send-email-mkenna@codeaurora.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190612_034806_564319_D5A3B37B X-CRM114-Status: GOOD ( 10.67 ) X-BeenThere: ath11k@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Maharaja Kennadyrajan MIME-Version: 1.0 Sender: "ath11k" Errors-To: ath11k-bounces+patchwork-ath11k=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP In order to avoid unnecessary WARN_ON in the function ath11k_dp_tx_complete_msdu, changed that WARN_ON to WARN_ON_ONCE. Signed-off-by: Maharaja Kennadyrajan --- drivers/net/wireless/ath/ath11k/dp_tx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/ath11k/dp_tx.c b/drivers/net/wireless/ath/ath11k/dp_tx.c index 5670796da05b..45db589f8141 100644 --- a/drivers/net/wireless/ath/ath11k/dp_tx.c +++ b/drivers/net/wireless/ath/ath11k/dp_tx.c @@ -358,7 +358,7 @@ static void ath11k_dp_tx_complete_msdu(struct ath11k *ar, struct ieee80211_tx_info *info; struct ath11k_skb_cb *skb_cb; - if (WARN_ON(ts->buf_rel_source != HAL_WBM_REL_SRC_MODULE_TQM)) { + if (WARN_ON_ONCE(ts->buf_rel_source != HAL_WBM_REL_SRC_MODULE_TQM)) { /* Must not happen */ return; }