lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Tue, 7 Jan 2020 10:52:57 +0100 From: "Rafael J. Wysocki" <rafael@...nel.org> To: Masahiro Yamada <masahiroy@...nel.org> Cc: Andrew Morton <akpm@...ux-foundation.org>, Julia Lawall <julia.lawall@...6.fr>, ACPI Devel Maling List <linux-acpi@...r.kernel.org>, Linux ARM <linux-arm-kernel@...ts.infradead.org>, linux-clk <linux-clk@...r.kernel.org>, linux-crypto@...r.kernel.org, linux-gpio@...r.kernel.org, linux-i2c <linux-i2c@...r.kernel.org>, Linux Kernel Mailing List <linux-kernel@...r.kernel.org>, linux-mtd@...ts.infradead.org, netdev <netdev@...r.kernel.org>, "moderated list:SOUND - SOC LAYER / DYNAMIC AUDIO POWER MANAGEM..." <alsa-devel@...a-project.org>, "devicetree@...r.kernel.org" <devicetree@...r.kernel.org> Subject: Re: [PATCH] treewide: remove redundent IS_ERR() before error code check On Mon, Jan 6, 2020 at 6:11 AM Masahiro Yamada <masahiroy@...nel.org> wrote: > > 'PTR_ERR(p) == -E*' is a stronger condition than IS_ERR(p). > Hence, IS_ERR(p) is unneeded. > > The semantic patch that generates this commit is as follows: > > // <smpl> > @@ > expression ptr; > constant error_code; > @@ > -IS_ERR(ptr) && (PTR_ERR(ptr) == - error_code) > +PTR_ERR(ptr) == - error_code > // </smpl> > > Signed-off-by: Masahiro Yamada <masahiroy@...nel.org> > --- Acked-by: Rafael J. Wysocki <rafael.j.wysocki@...el.com> for the acpi/scan.c change, but there seems to be a typo in the subject: s/redundent/redundant/
Powered by blists - more mailing lists