Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2567616ybl; Thu, 29 Aug 2019 09:52:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqx7l0CIhLcb+rXWwtqkggq5lNUjHqpy2MaXUAj4lccHY8UnMCysK282+wBHOquulZq7VZZk X-Received: by 2002:a62:80cb:: with SMTP id j194mr13065479pfd.183.1567097564462; Thu, 29 Aug 2019 09:52:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567097564; cv=none; d=google.com; s=arc-20160816; b=wvW4uXB1WhFz3TnCJ2dS8Bl7iKEoe7sQOz9f4yB4Z6maBG60A/chZ9bx1cT0oAroqu u/j51LW3Kfc4PSiq79SnNaCGarySfH8fgo6M8ml/TSwVH4F8+EkEiVJDKRx7DMpZT3GX /bUOL1skCPggl+c+xkCvXBb7+uFHxO55LxxnIQgkDVZVWZQzJUuHhYEIZXnolJgv0A7W Fj5/1lIAGr1igwtbrFGTZDyEAVNopYomDFz0H4vO8N82B1fxXWthukj4mj9i4Xmxqxc6 2yKt/ul3rY0lz5e2oWdk99Zu2bm8GNe1JyMOhLyzWyJAVEYDnI/lXCt2+vK7lzKE9SY4 Ue8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=YWO650+kQjgd0freSzG4GVYInuwUakQ2FRAAY/0z/rI=; b=eaHbBFNMDshSma9YJ6u3JKYdeZW50zVMBDy3RynjdsiwqJIrd9NeoFvwgYcq/ksJ7u nloTT29ourFRfCcjeZAiD6ocK08M0WlPWLWH+PRpFCN0ZbNqfLzzYFtZv1IBaPXUr8ep LULlh1RwRsOLUCZ/xvhTEd0kN4CkOpjV2DKyfJqjTp6Vx6YgXA6C9GWGsUacrXXNURHW MnevDDT8XWk1gSkVUMb1lSEqz6ERuBbHKts4TKF6BfN7Ojn32/jHHkf2K2McI5f3VetR Yd9AUAF7KBN0wWRI7TIKe5vrHotoEHcV1K2CNNcTVHDpwZWqWPOrM7Okc7xJh4G+9h4f WnnA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c11si3045145pfd.165.2019.08.29.09.52.29; Thu, 29 Aug 2019 09:52:44 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728012AbfH2QvY (ORCPT + 99 others); Thu, 29 Aug 2019 12:51:24 -0400 Received: from mail-wm1-f65.google.com ([209.85.128.65]:54898 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726973AbfH2QvX (ORCPT ); Thu, 29 Aug 2019 12:51:23 -0400 Received: by mail-wm1-f65.google.com with SMTP id k2so3018176wmj.4 for ; Thu, 29 Aug 2019 09:51:22 -0700 (PDT) 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:mime-version:content-transfer-encoding; bh=YWO650+kQjgd0freSzG4GVYInuwUakQ2FRAAY/0z/rI=; b=pFfR6QaFX/f5q+PRifIkEFLx76QPxvpS/Z0z/GSPLwy9vWF6qL0hqJvJHnBEbs6qiV m1V7nm7/bt2zoShZgPjtFkblDCAs0VncBGRNNuSHxlp4e7akEUd4FDNbR1ASoQ+vuMkM L7oaa/XtglHdkwWLWBftCFkzFIBFDxZgIx1kTcWa/+z1jfXYwlkBI+283iivfFCCazoN O3HY8nfakmUh1IXzuMOzUOsPzKMqmUryqwm4XR9+HM+/4YRNZWA2K8uZq0JGyo/RKqFg LdEg9waAxjD5FZAmasYMe7nxEoCpZWq7svt/yp1cF7A+Pa6Wgf1zWxivJ3Dm4ET/F1fl UulA== X-Gm-Message-State: APjAAAW7iU9voUVyoj6BHD6Q98vVSdWyWvpkUGwUfGUXfg/24W5PJjtn Dis1cqHULyF7Xli5p35plRvrX1s+B88= X-Received: by 2002:a7b:c195:: with SMTP id y21mr12562563wmi.16.1567097481381; Thu, 29 Aug 2019 09:51:21 -0700 (PDT) Received: from green.intra.ispras.ru (bran.ispras.ru. [83.149.199.196]) by smtp.googlemail.com with ESMTPSA id o14sm8340770wrg.64.2019.08.29.09.51.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Aug 2019 09:51:21 -0700 (PDT) From: Denis Efremov To: linux-kernel@vger.kernel.org Cc: Denis Efremov , Boris Ostrovsky , Juergen Gross , Joe Perches , Andrew Morton , xen-devel@lists.xenproject.org Subject: [PATCH v3 04/11] xen/events: Remove unlikely() from WARN() condition Date: Thu, 29 Aug 2019 19:50:18 +0300 Message-Id: <20190829165025.15750-4-efremov@linux.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190829165025.15750-1-efremov@linux.com> References: <20190829165025.15750-1-efremov@linux.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org "unlikely(WARN(x))" is excessive. WARN() already uses unlikely() internally. Signed-off-by: Denis Efremov Cc: Boris Ostrovsky Cc: Juergen Gross Cc: Joe Perches Cc: Andrew Morton Cc: xen-devel@lists.xenproject.org --- drivers/xen/events/events_base.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/xen/events/events_base.c b/drivers/xen/events/events_base.c index 2e8570c09789..6c8843968a52 100644 --- a/drivers/xen/events/events_base.c +++ b/drivers/xen/events/events_base.c @@ -247,7 +247,7 @@ static void xen_irq_info_cleanup(struct irq_info *info) */ unsigned int evtchn_from_irq(unsigned irq) { - if (unlikely(WARN(irq >= nr_irqs, "Invalid irq %d!\n", irq))) + if (WARN(irq >= nr_irqs, "Invalid irq %d!\n", irq)) return 0; return info_for_irq(irq)->evtchn; -- 2.21.0