diff options
author | Stephen Boyd <swboyd@chromium.org> | 2019-07-30 21:15:16 +0300 |
---|---|---|
committer | Sebastian Reichel <sebastian.reichel@collabora.com> | 2019-07-30 23:40:03 +0300 |
commit | c1030cd456198a2c58f718c3c4b215698d635553 (patch) | |
tree | 466393b068eac0bcbefcd5584061e0e8d84a32c8 /drivers/leds/leds-bcm6358.c | |
parent | e008227eb34fe14eb5fdb1ca2a07ac018dd9f22a (diff) | |
download | linux-c1030cd456198a2c58f718c3c4b215698d635553.tar.xz |
HSI: Remove dev_err() usage after platform_get_irq()
We don't need dev_err() messages when platform_get_irq() fails now that
platform_get_irq() prints an error message itself when something goes
wrong. Let's remove these prints with a simple semantic patch.
// <smpl>
@@
expression ret;
struct platform_device *E;
@@
ret =
(
platform_get_irq(E, ...)
|
platform_get_irq_byname(E, ...)
);
if ( \( ret < 0 \| ret <= 0 \) )
{
(
-if (ret != -EPROBE_DEFER)
-{ ...
-dev_err(...);
-... }
|
...
-dev_err(...);
)
...
}
// </smpl>
While we're here, remove braces on if statements that only have one
statement (manually).
Cc: Sebastian Reichel <sre@kernel.org>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Stephen Boyd <swboyd@chromium.org>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'drivers/leds/leds-bcm6358.c')
0 files changed, 0 insertions, 0 deletions