Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp56354imm; Thu, 30 Aug 2018 15:38:33 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZKOZcAgYL9NL1qO1UBUwMCOFGqOEzEB6whi1uFWmB30JBpUXP4ozT5Zk3DH1UQA9RAEkwv X-Received: by 2002:a63:9b09:: with SMTP id r9-v6mr5940519pgd.324.1535668713430; Thu, 30 Aug 2018 15:38:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535668713; cv=none; d=google.com; s=arc-20160816; b=Gjw/UpB2nG//ImOV6Fd3tdUlKH0gm0ZZ5EgN93PyMSrBj1x9Q/z6rrRmmXstqJl1U9 M6fxTArmgM+x7BY2CWvX63UGrn/3JmR5Q8+waiKKrMmFBDsuakj+d/YN1zNWBwh93YTD jrZ60U83icMbKiPeU3Wx1dPq+5KDkWJIhkDMVpTt4lWdnxndkj2rh/5NycSI48xIZGXL ORp0q/4ANyUfkIbEe1S/9CSGfp9lKv6SJMuvM6FcQyzEdPy5gVbFCsoUECbuJdSpt7Jx iiB694ebOhcsEAWA7KILvkxtEYBYLj+foSumziAAxUSQcH4ZQIwPbtLFAmAqtfuBS28e InSw== 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=OEG1WFkQCBmn2lvueq1gonbdYBMx8CbXlS/DaappwSQ=; b=tcCow2lFzzyGxdAnhrDA/PBYuQH7vPkCGLyqlIlvu3prwXbUJ9z8IG2+qML221BeS+ 4e7dbI1OGO9j9Klj+YMUKoiLd1XnqWXlM6qrmM8HQpZdvcNJdFgkIiZirPQCcRpewkIC spcVh0qYGV++tQUtUEAE/ng8q/KxBaipFC5AIPSXcN1CZd045pMsDLqgqL28P9EguLUm q/XTg+0PSwJ0Ex/5NA6DcFoDlKltuna24BnSzM201V7AgXIUhkmVZm9LR/iwXftyyu5k LMnZ78f43QVVqmmmXpVukSGwOy+Rgr9VZFcD5+AkzpndzrqgalBY9Iq2VIrZc92+cSZB HORQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=kRTffUe2; 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 t2-v6si7812662pge.64.2018.08.30.15.38.19; Thu, 30 Aug 2018 15:38:33 -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=kRTffUe2; 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 S1727631AbeHaCkG (ORCPT + 99 others); Thu, 30 Aug 2018 22:40:06 -0400 Received: from mail-lj1-f195.google.com ([209.85.208.195]:34535 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727212AbeHaCkF (ORCPT ); Thu, 30 Aug 2018 22:40:05 -0400 Received: by mail-lj1-f195.google.com with SMTP id f8-v6so8571943ljk.1 for ; Thu, 30 Aug 2018 15:35:40 -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=OEG1WFkQCBmn2lvueq1gonbdYBMx8CbXlS/DaappwSQ=; b=kRTffUe218uvJ+YNdOhNiUo1g4ojBP9WWinq9PovUGBU4uuEDeLe7qnBFer51u3GRb yBZAe6AyGRdh5cPoIabpq7iMCMkRSx0r8Z+40PU0hnLoAxCK8RMKCNK6oN9kOGk65xPr v8hV6IUt2tVAS4SOT0c4RVC7x2drWLF7yHbLDruDNq6uU/chEcIypgcmVqkK/WS5JFV/ Zrz3jcOdLBz+htZSkaNIiawcdirUHdlkNSv2iF/waeCMyKeb/RUQj9PN50x+YG5qTXLI vYhxKRpPMADNKloB2WIajcs0S+cjg6BRHUjMCDpNc9ZHoTbSGVos2K+oTmKSscdX4MdE JKzQ== 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=OEG1WFkQCBmn2lvueq1gonbdYBMx8CbXlS/DaappwSQ=; b=MXGw3iMtNhPbYr/m48tfQ3CdvtApSE2DrSdzkiD+X3Us5jq3IQTxwRxbeAIPoGl+mF stdaDIuHfxeKYMHOkrulbuiobFwJjxgnxF0EHGdLVxg0CslTY6YGsiQv3NWNmbPyVo16 xoUdI+wVd3O9pW0/2nv8OKuufqzs7ZHQMxfI7Fgl3ooKoQboMoaJhWIiRsnZtoEZVk1n +W13+Pyal+h3oyMv1jctLWeE0sHwQWDMVhRyfp+VjPSkxLOTalydCblTWqBDoYe+oE7Z FcgyoZq27KoJb3NBAo2cmV2K1AimRFPnYNGxKVJctCSKkeTx8aLx5OCU2/OR/vTSFB24 ZF2A== X-Gm-Message-State: APzg51DJr9E1auYnmfneyDQfGjAs0lKA+MqfusaZF0tkgjwmKKIX6dGK 2jB9yvw19RWQOm+g8qrAf2LqOgqa+no= X-Received: by 2002:a2e:44c6:: with SMTP id b67-v6mr8405274ljf.102.1535668539500; Thu, 30 Aug 2018 15:35:39 -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.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 30 Aug 2018 15:35:38 -0700 (PDT) From: Igor Stoppa X-Google-Original-From: Igor Stoppa To: linux-kernel@vger.kernel.org Cc: igor.stoppa@gmail.com, Igor Stoppa , Larry Finger , Kalle Valo Subject: [PATCH 12/23] wireless: remove unnecessary unlikely() Date: Fri, 31 Aug 2018 01:34:18 +0300 Message-Id: <20180830223429.30051-13-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() already contains an unlikely(), so it's not necessary to wrap it into another. Signed-off-by: Igor Stoppa Cc: Larry Finger Cc: Kalle Valo --- drivers/net/wireless/broadcom/b43/dma.c | 2 +- drivers/net/wireless/broadcom/b43legacy/dma.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/broadcom/b43/dma.c b/drivers/net/wireless/broadcom/b43/dma.c index 6b0e1ec346cb..d113bd997f4b 100644 --- a/drivers/net/wireless/broadcom/b43/dma.c +++ b/drivers/net/wireless/broadcom/b43/dma.c @@ -1432,7 +1432,7 @@ int b43_dma_tx(struct b43_wldev *dev, struct sk_buff *skb) goto out; } - if (unlikely(WARN_ON(free_slots(ring) < TX_SLOTS_PER_FRAME))) { + if (WARN_ON(free_slots(ring) < TX_SLOTS_PER_FRAME)) { /* If we get here, we have a real error with the queue * full, but queues not stopped. */ b43err(dev->wl, "DMA queue overflow\n"); diff --git a/drivers/net/wireless/broadcom/b43legacy/dma.c b/drivers/net/wireless/broadcom/b43legacy/dma.c index 2f0c64cef65f..1b1da7d83652 100644 --- a/drivers/net/wireless/broadcom/b43legacy/dma.c +++ b/drivers/net/wireless/broadcom/b43legacy/dma.c @@ -1149,7 +1149,7 @@ int b43legacy_dma_tx(struct b43legacy_wldev *dev, return -ENOSPC; } - if (unlikely(WARN_ON(free_slots(ring) < SLOTS_PER_PACKET))) { + if (WARN_ON(free_slots(ring) < SLOTS_PER_PACKET)) { /* If we get here, we have a real error with the queue * full, but queues not stopped. */ b43legacyerr(dev->wl, "DMA queue overflow\n"); -- 2.17.1