Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2122028ybl; Sat, 31 Aug 2019 08:26:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqxQ8nM1DiNMxmaV40s9zY7lcIaA8SPf7XVdVFU/zvwiPboD0fgtJfIaXxwz3Ju2MWw3RKqm X-Received: by 2002:aa7:8c4c:: with SMTP id e12mr25100180pfd.258.1567265217294; Sat, 31 Aug 2019 08:26:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567265217; cv=none; d=google.com; s=arc-20160816; b=MXgJukzkB6keJPRam5HTTB1X5j6HBsyPFE3neMVzheckgY7T5xGbH6USh2W/rLcfTi 9IOScxMgZ7TIQquBCLfdSvk9wsPX88NbMU/RS0qmygTsurqgKthv92haxjNOranMxWk4 EUDun0MtyPn8ak8cUqpoT5ruCdqHjRZGKAOr4zCuK/sysnOPaKwF+HiNIZ/f65AWK77f eos3joKWnaOhu4W9oD5bwCzW56dr95CtRGF378PrYNy27ql4urf2dNfTS2lLV3CT8y0T fIx/g8kVPtNTh+lNdUu46wCv67mnGlnASszL+z3hAqMiCSWY4kwMhBQZxI8Twdk35nds xluQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=k25MOk7BOWPBFNnisijsXHS1mqf7Rp4KqkEnt9CsSGE=; b=VPv1CKxsZHXwElylLR0jfzKB9LfiwOf2pEPHPZkCb+/L+nvNRBZ7oIbuUpuCMtuUj2 SjtPiC1YjaewVGGSHzVfFazmL2gL93uSqYCL392mSn0+NxHL0aT5vg6kawam7Xdmm3NM 3V0LIyVMvEnD5LT92SVgKSW+3xjOtWDPFWB9Us5bNNAOz2Lymsb+9xQyyaUxDBFr2vU5 n3fKgtBUqlV+xRgxtgmbsNllDfBnnIqvTKS2OEIaLTPH6jS4GBCCHSLKJFmm4etR2mPc c579CiPp6Dmpa/3c0PrtJRjXBd45VUCuW+S3aYFZ1YGTtY03GHQW8EeMyvkW/pSYiEeF oNtw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=YJhlWeQz; 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 b9si7090391pgb.478.2019.08.31.08.26.25; Sat, 31 Aug 2019 08:26:57 -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=YJhlWeQz; 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 S1728200AbfHaPZF (ORCPT + 99 others); Sat, 31 Aug 2019 11:25:05 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:36842 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726354AbfHaPZF (ORCPT ); Sat, 31 Aug 2019 11:25:05 -0400 Received: by mail-wr1-f68.google.com with SMTP id y19so9783373wrd.3; Sat, 31 Aug 2019 08:25:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=k25MOk7BOWPBFNnisijsXHS1mqf7Rp4KqkEnt9CsSGE=; b=YJhlWeQzJpvO+RhGSsZ9l1YFjRR2EvmI1hmxLcGfXz4MOnUmRi3/GizZjvWZqqr4bv bhXp/2Ulz7KoCwWq1SQlpxNxjadWO3Q5I4UqSP2UaVTAKsCn7v89p9BWEVDcxwBfMbXG VX2j6JlukxUsiPUpMWAd6v8pGwXE3bYT5myNNvNfXrtFj48zpruuuGTmWdaYvCuQFJ1V sQDIr3Ec9XlOuCr9Bd9LfRvYE4QXZOsK2sSnDSWbsltspIoB5TqT1TlqB9hYzjEnmo6S 60BeBx9HQfeIK/v3eJGQvpv8x35+l1FoeTuJ9aTBcX35kLP2JHoXCCsS+DBjCksbL1xA 7V5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=k25MOk7BOWPBFNnisijsXHS1mqf7Rp4KqkEnt9CsSGE=; b=g9mEXqaCvqE2FII+ENOSZGXhhlujXn30nqTw0r844oflB2Qt0NRIOw7AvyXoUndvwa e1xVfwLSlL8H3ndSEXkS8nnRbvdZw3dmkRKEVyKeaHOc/wPfK7fd688xaR/lSOCe2d1Q +Ec9Q+bXVpGh+i6NKfdqy1wji4J1zCZ9beDS/HsrDNGBT5Ni+PCVyu4u/IVL71D09DG9 ADOn/nVbUAlzM38ZW1h+NhnZbBWYpvpNjlxNC3ylP+9dXmkr5UlXD6FPPFUPGxIoZzxc UX0G+2JxcQghgHPNJ3IhCeIB5SZ2QpC1cie2LZrFn2fKJgxLe/tFhMoUoNBbJrtkNuSt XLoA== X-Gm-Message-State: APjAAAWHPh4hQkLyuaZA+4z1+GMoxXra6v/wKwm3Ocl/lePTHV9hHqmU 6aJ4gdRxnyRh4JI6OSWHBME= X-Received: by 2002:adf:f584:: with SMTP id f4mr24335864wro.160.1567265102640; Sat, 31 Aug 2019 08:25:02 -0700 (PDT) Received: from pali ([2a02:2b88:2:1::5cc6:2f]) by smtp.gmail.com with ESMTPSA id m7sm20346388wmi.18.2019.08.31.08.25.01 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 31 Aug 2019 08:25:01 -0700 (PDT) Date: Sat, 31 Aug 2019 17:25:00 +0200 From: Pali =?utf-8?B?Um9ow6Fy?= To: Denis Efremov Cc: Dmitry Torokhov , linux-kernel@vger.kernel.org, Joe Perches , Andrew Morton , linux-input@vger.kernel.org Subject: Re: [PATCH v3 09/11] Input: alps - remove unlikely() from IS_ERR*() condition Message-ID: <20190831152500.eg7xqo5ace6wu427@pali> References: <20190829165025.15750-1-efremov@linux.com> <20190829165025.15750-9-efremov@linux.com> <20190829175039.GA187474@dtor-ws> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="p6pa6tjr5e2zkulj" Content-Disposition: inline In-Reply-To: <20190829175039.GA187474@dtor-ws> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --p6pa6tjr5e2zkulj Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thursday 29 August 2019 10:50:39 Dmitry Torokhov wrote: > On Thu, Aug 29, 2019 at 07:50:23PM +0300, Denis Efremov wrote: > > "unlikely(IS_ERR_OR_NULL(x))" is excessive. IS_ERR_OR_NULL() already us= es > > unlikely() internally. >=20 > The keyword here is _internally_. >=20 > https://lore.kernel.org/lkml/20190821174857.GD76194@dtor-ws/ >=20 > So please no. Dmitry and I already rejected this patch, see also linked-list: https://lore.kernel.org/lkml/20190820111719.7blyk5jstgwde2ae@pali/ > >=20 > > Signed-off-by: Denis Efremov > > Cc: "Pali Roh=C3=A1r" > > 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(-) > >=20 > > 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 ps= mouse *psmouse, > > /* On V2 devices the DualPoint Stick reports bare packets */ > > dev =3D priv->dev2; > > dev2 =3D 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, > > --=20 > > 2.21.0 > >=20 >=20 --=20 Pali Roh=C3=A1r pali.rohar@gmail.com --p6pa6tjr5e2zkulj Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQS4VrIQdKium2krgIWL8Mk9A+RDUgUCXWqRSgAKCRCL8Mk9A+RD Umu+AKChsaP4CSHyL95PY6h8qfvy9VLlVgCgsJJM0b0+JaCmO8UiIbZc/5SHjz4= =btDG -----END PGP SIGNATURE----- --p6pa6tjr5e2zkulj--