diff options
author | Stephen Boyd <swboyd@chromium.org> | 2019-07-30 21:15:36 +0300 |
---|---|---|
committer | Thierry Reding <thierry.reding@gmail.com> | 2019-09-21 01:58:35 +0300 |
commit | fb5a35dbee8d6bd2ff638b7ebaf540b86860ee0a (patch) | |
tree | 568cb8208a715e0919e82d55f3bcb8afc21a92b4 /Documentation/devicetree/bindings | |
parent | f6960976c465179cd1b64dfae2edfb647820af1b (diff) | |
download | linux-fb5a35dbee8d6bd2ff638b7ebaf540b86860ee0a.tar.xz |
pwm: 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: Thierry Reding <thierry.reding@gmail.com>
Cc: linux-pwm@vger.kernel.org
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Stephen Boyd <swboyd@chromium.org>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
Diffstat (limited to 'Documentation/devicetree/bindings')
0 files changed, 0 insertions, 0 deletions