Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp55937imm; Thu, 30 Aug 2018 15:37:37 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbQkk27yIRAGSF3jqjrmJKh9kURFOVLis8oruFcwKuQTLnTst4Z7g1g81VcncmT2a/fQ60L X-Received: by 2002:a62:8d84:: with SMTP id p4-v6mr12601613pfk.251.1535668657132; Thu, 30 Aug 2018 15:37:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535668657; cv=none; d=google.com; s=arc-20160816; b=ozFi2lvoPbS+kmdMJ9gIONjme//erIgIgZ6pjlfPWTDlkzOm6sFebGufGZHJV85GEN RhUXBBxJ/XSvZTpWgi/yQygj+ou4sXKTBl/nxFZk7w3ppb9LsKPgwAorv2eHyXSMa5M+ SU0MqO3Q+cM0DtWPtPQGPr/tn4saedIU4Y2HD1Z6CYvjTgN2f/o6GJD1NJkI25dJ+vTG gbG/Wfefu4Tbzuf4SSO9is+RfiMwBNQ2zfkxufScXjgjOErmfaSC3EIzMs7BuerEfz8q zrBcyJVfWeUl/CxqU69YOmetp1qtqEYHjftZYkkIs0lb02xSMZstnCUpbxpb5vew1qEo P2bA== 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=3Suqu+8mzeGsAyTM4WyabTxpxqa18yKHcczrxQ30lt0=; b=rWhAW4FDKS5L9VZKte9r0lVXUKGH6DZ4rl9VhbaeDa+X7FJI/1+/O550JavH1+cDnz 7iyiONiUV05x3/40YYmRpajD2IfXAhehvNbD1cj9hk0B2w1Y4kiYAmhOVS7l8zH0NgU9 jqvrUcTOtRZ4YDpvZIW/TCaOiNcdGQv9UXhTlIDaUnhAYH/MSiSbXCkLFVSU0UAq9Z8C BNyfBojeQEjBnBfSxw+r9CzE1IgQKK5imZxlI1WhbGFkRjQCQtRDU140fyktdUXwgcaL yj0EqdoCoAgA5fvOXFgscIM9pm4T2mMidAc6gwvCky8cuCN++05xmHgSqcX4sZaoLGOL 0JQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="F/oBjRvA"; 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 ay10-v6si7649108plb.293.2018.08.30.15.37.22; Thu, 30 Aug 2018 15:37:37 -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="F/oBjRvA"; 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 S1727594AbeHaCkC (ORCPT + 99 others); Thu, 30 Aug 2018 22:40:02 -0400 Received: from mail-lj1-f194.google.com ([209.85.208.194]:44342 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727212AbeHaCkC (ORCPT ); Thu, 30 Aug 2018 22:40:02 -0400 Received: by mail-lj1-f194.google.com with SMTP id q127-v6so8553800ljq.11 for ; Thu, 30 Aug 2018 15:35:37 -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=3Suqu+8mzeGsAyTM4WyabTxpxqa18yKHcczrxQ30lt0=; b=F/oBjRvAqeUY12kAagc0L2MRBD0fGaTRW+42m7uaP/WR2VEiPaqDUGFUByA7s7ugI/ itFAYYaUjBs/Pc7IIzpPCpokT9a3wto1mV3OyxkdRJ1VEM2fWID+67dZ/3dIoQJWPMwS qNgRKgTzbm3wZ5KUezdPpw573uwsnmckQFqw84XnEkBogQynsv6yIltqYxGJmWGa17tK vt94mfrf/RcQrrNrM8TRjzjAHhEGV33/Qq/a3JDyfzyn0XwWNjBphtZtXKa880qb1nbh j5vZi6MGvmdr2JEK4vFZ+pmJiqWIEDPNAid+/nz+5nHG76aabAvb9EMMdbzTqp3fSwS3 bbhg== 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=3Suqu+8mzeGsAyTM4WyabTxpxqa18yKHcczrxQ30lt0=; b=TfDd6mWWL0jEgJR0w2zO672aBSqv+IebxqBLWjl+kSxdIh/Zj29EcnI5X9r81MIQNf r2yoI42+0wd4GmC7znrMPBKkJ27QJsiZdHy+pieBGqfaiBmiSebCkKRYVZrLpwERg+el j8xrYNkqKuJS49KLHjCLTVANX2rbvQQ1IjtMsRW542G5pm+79pQ5IT1/ytentQXrwiCA PhZPE5oyycpE+eF9KTHKPEz3RvibHMDmQvlcj7LCJSkfiljB1NaFMAFabVuQo/GH3mqM zDKUrzqb4YUSs1ecZSkRavda1LXj6aTsrwrNHcge2fuzZ8RN8szGW1mkPx3hLIiCEkJY m9Ew== X-Gm-Message-State: APzg51Aa4AYNg9CDLqsgg8olPfj2SyQyWAqNF/qYq/yKOiNrQHCHUEGc bZ4axOoRiD99mGwgLDCbXLNEr0GAqCc= X-Received: by 2002:a2e:4951:: with SMTP id b17-v6mr9012852ljd.31.1535668536108; Thu, 30 Aug 2018 15:35:36 -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.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 30 Aug 2018 15:35:35 -0700 (PDT) From: Igor Stoppa X-Google-Original-From: Igor Stoppa To: linux-kernel@vger.kernel.org Cc: igor.stoppa@gmail.com, Igor Stoppa , Christian Lamparter , Kalle Valo Subject: [PATCH 10/23] wireless: remove unnecessary unlikely() Date: Fri, 31 Aug 2018 01:34:16 +0300 Message-Id: <20180830223429.30051-11-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(), and the logical or of two of them is still unlikely(), so it's not necessary to wrap them into another. Signed-off-by: Igor Stoppa Cc: Christian Lamparter Cc: Kalle Valo --- drivers/net/wireless/ath/carl9170/tx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/ath/carl9170/tx.c b/drivers/net/wireless/ath/carl9170/tx.c index 0cb5b58925dc..8c75651ede6c 100644 --- a/drivers/net/wireless/ath/carl9170/tx.c +++ b/drivers/net/wireless/ath/carl9170/tx.c @@ -246,8 +246,8 @@ static void carl9170_release_dev_space(struct ar9170 *ar, struct sk_buff *skb) * of available memory blocks, so the number can * never execeed the mem_blocks count. */ - if (unlikely(WARN_ON_ONCE(cookie == 0) || - WARN_ON_ONCE(cookie > ar->fw.mem_blocks))) + if (WARN_ON_ONCE(cookie == 0) || + WARN_ON_ONCE(cookie > ar->fw.mem_blocks)) return; atomic_add(DIV_ROUND_UP(skb->len, ar->fw.mem_block_size), -- 2.17.1