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
..
2019-05-08 21:23:11 -07:00
2018-09-12 13:07:10 -07:00
2020-01-15 13:43:48 -08:00
2020-01-17 16:48:07 -08:00
2020-01-17 16:48:43 -08:00
2020-01-23 09:24:25 -08:00
2020-01-30 15:39:24 -08:00
2019-07-02 15:40:40 -07:00
2020-01-23 09:24:25 -08:00
2020-01-17 16:48:44 -08:00
2020-01-23 09:24:25 -08:00
2018-09-12 13:07:10 -07:00
2019-08-23 07:57:13 -07:00
2020-01-17 16:48:42 -08:00
2020-01-17 16:48:07 -08:00
2020-01-30 15:39:24 -08:00
2020-01-17 16:48:07 -08:00
2020-01-17 16:48:42 -08:00
2020-02-04 03:05:27 +00:00
2018-12-26 15:16:56 -08:00
2020-01-15 13:42:14 -08:00
2020-01-17 16:48:44 -08:00
2020-01-17 16:48:44 -08:00
2018-12-26 15:16:54 -08:00
2020-01-17 16:48:44 -08:00
2020-01-23 09:24:25 -08:00
2019-03-05 19:58:06 -08:00
2018-09-12 13:07:10 -07:00
2020-01-14 13:27:32 -08:00
2019-10-22 10:32:42 -07:00
2019-08-12 19:33:51 -07:00