Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2568307ybl; Thu, 29 Aug 2019 09:53:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqwQAiIKfWRRRDe2JUdUJJQA3Fui+a7CxK+IYDZqnl/77k7T/Pux50yLzbj47QHYZzyBxsZx X-Received: by 2002:a17:90a:8a8a:: with SMTP id x10mr10484191pjn.83.1567097601968; Thu, 29 Aug 2019 09:53:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567097601; cv=none; d=google.com; s=arc-20160816; b=SpnED9YLMenScP6qtMQ2j7A2fJuBcPo1ZDUQjqY5zxL0Pk9pHvkH+xwT5aFDi1PWpS JP8n8j4scL+HHyjulU02xO4ONFB3H1vo/Swh8hJVQUFeaquJv6RPg6hdGOC+6uaw/Xre qqw82IXvIeH3TFQjIF0Zglvv/xcrRjMP79qy0N3bev6ZfKYaueW01UGqxxMH9czC36Ny Z2erde1Iip66eAp40Na3+iJTXIkfB64qZxlFQCRkx2LM11I/0u2M4YYB1i/8HmeScgoh mo/Xs0EFv2klxSNeGt8IQKjzdmBxwaOAuKLECJYNEoZeHa68QqoOLEpBQAYADqbdwaUT paUg== 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=Ga+XMFiFry9YiHyXr2eap6q73l3MbDmaJElZidrxT1c=; b=iRNS7lIG4CGa4YyGcIX5XteaO5npeH42Dlurv9Y/RBmXwyLb4slfm5FkxyN+gmjguq vU1bUIGk/W+EesMX4zzmnMpbB2wCOSsgbToUE2xPXsaYY7pHtTLKc7a5jDlk3Yoj2BNt KXLHzHnfUhakY6CoZ0+w51jvXm3oIhWy7OvZAF413IZe6ujIQ+ca7mAqg9ucqohsP31Z JJlCICBlbZXW2SwCG60oxSqYKp7f4ptpgyDpuB6LFx6OvqjBYTG2PevKqjwsZz4iTitG J+7DNOZkmJhRAe9hQTtAUQxob8Ab2i21eervk0PZcMP/tOuJkLxldZhFKbXYE+bR9ZKk +4yg== 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 r11si2466816pgp.390.2019.08.29.09.53.06; Thu, 29 Aug 2019 09:53:21 -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 S1728217AbfH2Qvp (ORCPT + 99 others); Thu, 29 Aug 2019 12:51:45 -0400 Received: from mail-wm1-f68.google.com ([209.85.128.68]:39136 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728161AbfH2Qvh (ORCPT ); Thu, 29 Aug 2019 12:51:37 -0400 Received: by mail-wm1-f68.google.com with SMTP id n2so3165494wmk.4; Thu, 29 Aug 2019 09:51:36 -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=Ga+XMFiFry9YiHyXr2eap6q73l3MbDmaJElZidrxT1c=; b=Uly+OWR6uY2dDl3aasBq9oAfVvAMFsNaILQM78roRCRzmvO626dk4NpscajCeryt7f uG1YrrUSPfcj7RodP26+jn4QoAN4nh/KyL4SAus7T7nPCMJe72bx1NgWGWT2sTxcA4IS TFvD+DQXiQ3KTm76eZVRMlWmFAstBKF22E0pWDZCvo9q4pk2tHHMf2soornIeqhgBSsl 9JUarQzT35NkmrMBYhp98BP8Svo2kxfSr4pFgPBFaTwQ2H6nW+NCeG3fhFC81z6rPjqN v5OsboGI2Nhxejl4qDWN9e7GSn+Rb3OIR1MUCS9TnlNV/e/J93K90F36Pmk1kJ99zXQQ 9VgQ== X-Gm-Message-State: APjAAAXjZJXrv/SMKVeSvkuzlgH/B1espaZm9VdWMlslo1UOLLwl34u1 EJbgxvCsnFVVkE3OZzPiOXywcIJ7Vnk= X-Received: by 2002:a1c:750f:: with SMTP id o15mr13309528wmc.67.1567097495899; Thu, 29 Aug 2019 09:51:35 -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.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Aug 2019 09:51:35 -0700 (PDT) From: Denis Efremov To: linux-kernel@vger.kernel.org Cc: Denis Efremov , =?UTF-8?q?Pali=20Roh=C3=A1r?= , Dmitry Torokhov , Joe Perches , Andrew Morton , linux-input@vger.kernel.org Subject: [PATCH v3 09/11] Input: alps - remove unlikely() from IS_ERR*() condition Date: Thu, 29 Aug 2019 19:50:23 +0300 Message-Id: <20190829165025.15750-9-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-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org "unlikely(IS_ERR_OR_NULL(x))" is excessive. IS_ERR_OR_NULL() already uses unlikely() internally. Signed-off-by: Denis Efremov Cc: "Pali Rohár" Cc: Dmitry Torokhov Cc: Joe Perches Cc: Andrew Morton Cc: linux-input@vger.kernel.org --- drivers/input/mouse/alps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/input/mouse/alps.c b/drivers/input/mouse/alps.c index 34700eda0429..ed1661434899 100644 --- a/drivers/input/mouse/alps.c +++ b/drivers/input/mouse/alps.c @@ -1476,7 +1476,7 @@ static void alps_report_bare_ps2_packet(struct psmouse *psmouse, /* On V2 devices the DualPoint Stick reports bare packets */ dev = priv->dev2; dev2 = psmouse->dev; - } else if (unlikely(IS_ERR_OR_NULL(priv->dev3))) { + } else if (IS_ERR_OR_NULL(priv->dev3)) { /* Register dev3 mouse if we received PS/2 packet first time */ if (!IS_ERR(priv->dev3)) psmouse_queue_work(psmouse, &priv->dev3_register_work, -- 2.21.0