linux/drivers/char/hw_random
Masahiro Yamada 45586c7078 treewide: remove redundant IS_ERR() before error code check
'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>

Link: http://lkml.kernel.org/r/20200106045833.1725-1-masahiroy@kernel.org
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Cc: Julia Lawall <julia.lawall@lip6.fr>
Acked-by: Stephen Boyd <sboyd@kernel.org> [drivers/clk/clk.c]
Acked-by: Bartosz Golaszewski <bgolaszewski@baylibre.com> [GPIO]
Acked-by: Wolfram Sang <wsa@the-dreams.de> [drivers/i2c]
Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> [acpi/scan.c]
Acked-by: Rob Herring <robh@kernel.org>
Cc: Eric Biggers <ebiggers@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2020-02-04 03:05:27 +00:00
..
amd-rng.c hwrng: amd - Revert managed API changes 2017-03-16 17:43:10 +08:00
atmel-rng.c hwrng: atmel - add new platform support for sam9x60 2019-11-15 13:44:17 +08:00
bcm2835-rng.c treewide: remove redundant IS_ERR() before error code check 2020-02-04 03:05:27 +00:00
cavium-rng-vf.c hwrng: drivers - Use device-managed registration API 2019-08-02 14:44:33 +10:00
cavium-rng.c hwrng: cavium - make two functions static 2018-03-09 22:45:34 +08:00
core.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6 2019-11-25 19:49:58 -08:00
exynos-trng.c hwrng: exynos - use devm_platform_ioremap_resource() to simplify code 2019-10-26 02:09:53 +11:00
geode-rng.c hwrng: geode - Revert managed API changes 2017-03-16 17:43:11 +08:00
hisi-rng.c hwrng: hisi - use devm_platform_ioremap_resource() to simplify code 2019-10-26 02:09:54 +11:00
hisi-trng-v2.c hwrng: hisi - add HiSilicon TRNG driver support 2019-11-08 23:15:51 +08:00
imx-rngc.c hwrng: imx-rngc - use devm_platform_ioremap_resource() to simplify code 2019-07-27 21:08:32 +10:00
intel-rng.c remove ioremap_nocache and devm_ioremap_nocache 2020-01-06 09:45:59 +01:00
iproc-rng200.c hwrng: iproc-rng200 - Add support for BCM2711 2019-12-11 16:34:45 +08:00
ixp4xx-rng.c
Kconfig hwrng: iproc-rng200 - Add support for BCM2711 2019-12-11 16:34:45 +08:00
ks-sa-rng.c hwrng: ks-sa - Add minimum sleep time before ready-polling 2019-11-17 08:37:29 +08:00
Makefile hwrng: hisi - add HiSilicon TRNG driver support 2019-11-08 23:15:51 +08:00
meson-rng.c hwrng: meson - use devm_platform_ioremap_resource() to simplify code 2019-10-26 02:09:55 +11:00
mtk-rng.c hwrng: mediatek - Use devm_platform_ioremap_resource() in mtk_rng_probe() 2019-10-05 01:06:18 +10:00
mxc-rnga.c hwrng: mxc-rnga - use devm_platform_ioremap_resource() to simplify code 2019-07-27 21:08:32 +10:00
n2-asm.S License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
n2-drv.c hwrng: n2-drv - fix typo 2019-08-08 12:07:49 +10:00
n2rng.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
nomadik-rng.c hwrng: drivers - Use device-managed registration API 2019-08-02 14:44:33 +10:00
npcm-rng.c hwrng: npcm - use devm_platform_ioremap_resource() to simplify code 2019-10-26 02:09:55 +11:00
octeon-rng.c remove ioremap_nocache and devm_ioremap_nocache 2020-01-06 09:45:59 +01:00
omap3-rom-rng.c hwrng: omap3-rom - Fix unused function warnings 2019-11-01 13:33:42 +08:00
omap-rng.c treewide: remove redundant IS_ERR() before error code check 2020-02-04 03:05:27 +00:00
optee-rng.c hwrng: make symbol 'optee_rng_id_table' static 2019-02-20 17:58:50 +01:00
pasemi-rng.c hwrng: pasemi - use devm_platform_ioremap_resource() to simplify code 2019-10-26 02:09:56 +11:00
pic32-rng.c hwrng: pic32 - use devm_platform_ioremap_resource() to simplify code 2019-10-26 02:09:56 +11:00
powernv-rng.c hwrng: drivers - Use device-managed registration API 2019-08-02 14:44:33 +10:00
pseries-rng.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 333 2019-06-05 17:37:06 +02:00
s390-trng.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 376 2019-06-05 17:37:10 +02:00
st-rng.c hwrng: st - use devm_platform_ioremap_resource() to simplify code 2019-10-26 02:09:57 +11:00
stm32-rng.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 110 2019-05-24 17:39:01 +02:00
timeriomem-rng.c hwrng: timeriomem - relax check on memory resource size 2019-09-05 14:37:30 +10:00
tx4939-rng.c hwrng: tx4939 - use devm_platform_ioremap_resource() to simplify code 2019-10-26 02:09:57 +11:00
via-rng.c hwrng: via - support new Centaur CPU 2018-04-21 00:59:03 +08:00
virtio-rng.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 102 2019-05-24 17:39:00 +02:00
xgene-rng.c hwrng: xgene - use devm_platform_ioremap_resource() to simplify code 2019-10-26 02:09:57 +11:00