Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp56779imm; Thu, 30 Aug 2018 15:39:12 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbncdmF1T37gq9AGIuCj4byB7zPpQEMXUN5pG4m3XPlhpzXMJKu/JhRDymKnkOqQyF5zH5Y X-Received: by 2002:a63:5204:: with SMTP id g4-v6mr11537132pgb.274.1535668752399; Thu, 30 Aug 2018 15:39:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535668752; cv=none; d=google.com; s=arc-20160816; b=hQe3NsO6PzuwNL/riJXVxkmNwmT0qv+f7LKthJfGjAWTIaDoArfeoqaYwngY+BBpH4 I8/Cp5Oxp/9AG/hL/3njcGpuqyMKwMRzeE6SmCQGOjmSM8VwX64Xbj+pkcA7+eIzqXoK g2A1xVSES1kFhKMk3LcgSRapcknWjJtWzShDyoffUYp4k/3y0PeOAZ6ARhGgkpcPRyKH TIDXB+Rdz8RTUY8Tm7Qwta+RfMP1PXfmemXYbGZZyxVM1B2dYy+d+bnJznB1O5cBNjLa YTh+sXhxeqNfgTpYtluhv4AiYtoLXTQo8bQLlaY0bGsI3sReaK3Acm+vM/YeRZsm+0yi 6eYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=p8eJzuiYqNGQh5l3aulpaEC6rDHC9wpiJW8RJMd55aE=; b=h3MkkEzv6+qePBvIJy/HzelbgV2tXC5hzw7FBSgPTyAUG1MRrBffR81r8CuUNUgoJA HrID1IA2f47PgbNKeXNKDGqWrffJi7TJI9J6RigrCrnLKAJUACg3cZlVZbNwNSrE7NXb 3h+TliRLGXb07dTxBpyvqOn0NW5nAm8uq5aS4dV3iZZvYRN93sepsKlI8tW/HiNCQ/ZA FI0Mi5Byr9bkMbupL5tVTlg0GiepsRcGweaSBE5SO8pNO8OpahRsgWu6wKuc42RIC7tY +FkBDocumdSAmcznD9N08Ak969cMI9vQQPkks7xyVi8LX/BAvAnesYPKprTe9th/LJUf ECrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=mXFkFkp5; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h12-v6si7617759pll.416.2018.08.30.15.38.58; Thu, 30 Aug 2018 15:39:12 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=mXFkFkp5; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727616AbeHaCkE (ORCPT + 99 others); Thu, 30 Aug 2018 22:40:04 -0400 Received: from mail-lj1-f196.google.com ([209.85.208.196]:37396 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727586AbeHaCkD (ORCPT ); Thu, 30 Aug 2018 22:40:03 -0400 Received: by mail-lj1-f196.google.com with SMTP id v9-v6so8571275ljk.4 for ; Thu, 30 Aug 2018 15:35:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=p8eJzuiYqNGQh5l3aulpaEC6rDHC9wpiJW8RJMd55aE=; b=mXFkFkp5ArNiGa+217b4G1Ms+pyusmYsmvWzODRcxoz8FOkGohp/QSiXApZSw7cjyh y5fo8ytvohfSvnLskRLbmZ+m7ENhqKYVofRPmjURX6TCPfQtRPwjLuw8J9np+WcMrx/z e87XhMH9stmJ13/Hhu7YnNWpVI1lFyy/5Fs3zfbFJWRImuM9EXCaPcmoUBDIN2Bvd7LB 2R14GrhIZndTEHxkvW/uuwTXzopJOdSf/Y+AlbkHAPPsMGnh+1ITIe7jLr7/IVc3rqO/ OYGfOuspO4zmmMAyIyPs+LKj/XsbeFaCzyxZPhr2/ut5Ybw/eEOV4dPz7fGX+0qXPKcR SBPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=p8eJzuiYqNGQh5l3aulpaEC6rDHC9wpiJW8RJMd55aE=; b=qe/Jm03rf9lMaT+IvTwlI8b3mCULB09PJslX8k5HMk9mgV7K7iUKhvRPHR7FOIg0+n rfG5pu1p+TUUPrkMsAa1kym1zj9MUhyhS6PGdeXekS3aL7GbI9X9eZJqoV4Kxr+s4lQq ik05JTZ3Fin03BSYPGzFYYTy601ty8PmPRJIGoD1njPvlG89L5higQgDdq60wIkQ0aMg nOFTGjZw2nTvFyXa0x5F+jveGydI4/+BccK4tWNgRmjvHHTc2tLsUtb5ZZKbGX+zJmLg nyiQYYWUaoOMxilUmwvnT841zY9Gac4aA6sTVr8ahngvSQJt1lhsnOhYPRkIsJuONnGH 6EoQ== X-Gm-Message-State: APzg51CANIPq56T0ygrZkULLybVmAKhDMkDVI8lcizyhaiCC4qB8sXCj vTY9ZslzRLpi0JgJs13KV2Uz9g9rKac= X-Received: by 2002:a2e:2e02:: with SMTP id u2-v6mr8911086lju.77.1535668537776; Thu, 30 Aug 2018 15:35:37 -0700 (PDT) Received: from Mort.jumbo.freeair (91-159-62-202.elisa-laajakaista.fi. [91.159.62.202]) by smtp.gmail.com with ESMTPSA id u28-v6sm1455376ljd.61.2018.08.30.15.35.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 30 Aug 2018 15:35:37 -0700 (PDT) From: Igor Stoppa X-Google-Original-From: Igor Stoppa To: linux-kernel@vger.kernel.org Cc: igor.stoppa@gmail.com, Igor Stoppa , Kalle Valo , Michal Kazior Subject: [PATCH 11/23] wireless: remove unnecessary unlikely() Date: Fri, 31 Aug 2018 01:34:17 +0300 Message-Id: <20180830223429.30051-12-igor.stoppa@huawei.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180830223429.30051-1-igor.stoppa@huawei.com> References: <20180830223429.30051-1-igor.stoppa@huawei.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org WARN_ON_ONCE() already contains an unlikely(), so it's not necessary to wrap it into another. Signed-off-by: Igor Stoppa Cc: Kalle Valo Cc: Michal Kazior --- drivers/net/wireless/ath/ath10k/htt_rx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/ath/ath10k/htt_rx.c b/drivers/net/wireless/ath/ath10k/htt_rx.c index 4d1cd90d6d27..1455007f3eb8 100644 --- a/drivers/net/wireless/ath/ath10k/htt_rx.c +++ b/drivers/net/wireless/ath/ath10k/htt_rx.c @@ -1176,11 +1176,11 @@ static void ath10k_htt_rx_h_undecap_raw(struct ath10k *ar, */ /* This probably shouldn't happen but warn just in case */ - if (unlikely(WARN_ON_ONCE(!is_first))) + if (WARN_ON_ONCE(!is_first)) return; /* This probably shouldn't happen but warn just in case */ - if (unlikely(WARN_ON_ONCE(!(is_first && is_last)))) + if (WARN_ON_ONCE(!(is_first && is_last))) return; skb_trim(msdu, msdu->len - FCS_LEN); -- 2.17.1