Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp21312727ybl; Mon, 6 Jan 2020 02:06:47 -0800 (PST) X-Google-Smtp-Source: APXvYqxUaHy41r1wrw4cviRowEaK5sfBowLJJGHaaz7Zt4COveWViJxYI8QcZ0wn6/7cwDZ3eTgw X-Received: by 2002:a05:6830:1d91:: with SMTP id y17mr108816985oti.276.1578305207504; Mon, 06 Jan 2020 02:06:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578305207; cv=none; d=google.com; s=arc-20160816; b=wW7zKrpLyVqroV+HT5f7hxSi7AqETT0d9IIkMKMHmS+Z7FUndC5j/iVisntzB8GwNt yAFshKBd19Vw87xT47Akr/jxtOPpcrZcJpG9zha1FiZdH3sMgYF4yFf9SpX2XIZ1OoDa jS3RGrfPoDapI/0zNevluxQirVJxfooCH0nA/zT3TUFMzCfNP0WzQZMV+I5r5HJll1G7 hJmuQ6F8kuE8s4tBh3xnS2sylUwUpJQItblpWBE0hgWcaUmupsI85TXXpQ7HA5Fm/D7Z ryeCAoxyE0MUBJKEp8ud/XeYQLuzhjrjW3JIwJItcpul0L6qBKkt82Vwz0QQGtjuOMvE sH/g== 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; bh=QL7X/XGZbdA5aeCOVomRr0Bymv85j5HwOQFfNzAZZJ0=; b=R340dYd/DVyXYkNS3P9tyoooHbzdWOREO6XiYWXaVjU7jzY3gXRGYsA3WE1lq4JJMq zSIexFeya1Ei1RH0eAiaHKIieshHX8lxrrG6kWdLl9Kgrytt81Fr9uT9NDOSth5NH8Is 6bIwYmoaLjVCm2qD5qm4mrSzCpo59X3UuEMd+pNcbVftBseXmlq6blj9HgkbWB+JFpfn 1MvZArGcFPXtaLhfuuCfWNX9FkgCo2pzuCKlcJletEi+u3qnbBRAXHVYsdup9S7xt93G i7LpkfN0Z1HL2vsUbSj1f0Kyqes/nKVk/3/buPizQ/NTwllCznsuJcKss2DRtW/D2TIj vtgQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-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 n25si30265175oij.175.2020.01.06.02.06.29; Mon, 06 Jan 2020 02:06:47 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-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-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726281AbgAFKGF (ORCPT + 99 others); Mon, 6 Jan 2020 05:06:05 -0500 Received: from sauhun.de ([88.99.104.3]:37032 "EHLO pokefinder.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726133AbgAFKGE (ORCPT ); Mon, 6 Jan 2020 05:06:04 -0500 Received: from localhost (p54B338AC.dip0.t-ipconnect.de [84.179.56.172]) by pokefinder.org (Postfix) with ESMTPSA id 8DC052C0686; Mon, 6 Jan 2020 11:06:01 +0100 (CET) Date: Mon, 6 Jan 2020 11:05:58 +0100 From: Wolfram Sang To: Masahiro Yamada Cc: Andrew Morton , Julia Lawall , linux-acpi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, linux-crypto@vger.kernel.org, linux-gpio@vger.kernel.org, linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mtd@lists.infradead.org, netdev@vger.kernel.org, alsa-devel@alsa-project.org, devicetree@vger.kernel.org Subject: Re: [PATCH] treewide: remove redundent IS_ERR() before error code check Message-ID: <20200106100558.GA4831@kunai> References: <20200106045833.1725-1-masahiroy@kernel.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="zhXaljGHf11kAtnf" Content-Disposition: inline In-Reply-To: <20200106045833.1725-1-masahiroy@kernel.org> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org --zhXaljGHf11kAtnf Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jan 06, 2020 at 01:58:33PM +0900, Masahiro Yamada wrote: > 'PTR_ERR(p) =3D=3D -E*' is a stronger condition than IS_ERR(p). > Hence, IS_ERR(p) is unneeded. >=20 > The semantic patch that generates this commit is as follows: >=20 > // > @@ > expression ptr; > constant error_code; > @@ > -IS_ERR(ptr) && (PTR_ERR(ptr) =3D=3D - error_code) > +PTR_ERR(ptr) =3D=3D - error_code > // >=20 > Signed-off-by: Masahiro Yamada For drivers/i2c: Acked-by: Wolfram Sang Thanks! --zhXaljGHf11kAtnf Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEOZGx6rniZ1Gk92RdFA3kzBSgKbYFAl4TBoIACgkQFA3kzBSg KbYycQ/9HHMMaJuiDZs2ZZyg9Szbt/uDs6lfGNwX2WQjjgoo0FHwIISx26fwUSS0 sfKb1VukurwS3gKvijHI2Tgo+f8Vb5W76AfDl7l2Pt+/1Fc3udj81ejuq6hrwDtX 8lb3i4K7U7mReQW1CuGDL2a15XNeUCNSocbEz9r/fSMSCcO7vtYFQdJ1PRCiO40n Z9RU/AGK5/6Dm8H6JaPvBbkL4cSaKu0fWTLYwZfm5lUqpj8ERaGKdlz4W/DEy5nw /FLsLSoRRKpkrWFzohHUjEplvrX5Xv7//Pl4GHVxH25rPhKgXL7M4bkJUrAOG8Ap zRni09tOZTNrB2zkt3dFgDSUXwPHJOM0KLrVyFeze3ZtA/8rDaDxbr7a0lK0Jgi6 X3+CMoirCftC9W2ub9a9h/IOhLqzFzVoWNN3QsHr4XxLYmE1EvhoIYbCRs3JpVrV cgbYECZxZElbp6K6u7sEsETPvGjvHi4gzXBZUwxYpdZyWaUsV+XIzxqQyeQIqkFF Yp6Cjmd/cjgLLUMwxL2QaopFPm+Ul+f5AojzQbMP6ScKbrjYfKn8S60q4fwrShk1 yDlNFlQgdSrn1Dt1PfGllfjLz1bcQ/tsZsmP/ulyPE0Ph9Mv5ixDhEse7mZmOVjm 8khnVJiGQcIi1CMl8mR8uDU6319aQvxcYWlG84KlF7nXsigrRqA= =e1Dd -----END PGP SIGNATURE----- --zhXaljGHf11kAtnf--