diff options
| author | Stephen Boyd <[email protected]> | 2019-07-30 18:15:36 +0000 |
|---|---|---|
| committer | Thierry Reding <[email protected]> | 2019-09-20 22:58:35 +0000 |
| commit | fb5a35dbee8d6bd2ff638b7ebaf540b86860ee0a (patch) | |
| tree | 568cb8208a715e0919e82d55f3bcb8afc21a92b4 /drivers/pwm/pwm-stm32-lp.c | |
| parent | pwm: imx: Document known limitations (diff) | |
| download | kernel-fb5a35dbee8d6bd2ff638b7ebaf540b86860ee0a.tar.gz kernel-fb5a35dbee8d6bd2ff638b7ebaf540b86860ee0a.zip | |
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 <[email protected]>
Cc: [email protected]
Cc: Greg Kroah-Hartman <[email protected]>
Signed-off-by: Stephen Boyd <[email protected]>
Signed-off-by: Thierry Reding <[email protected]>
Diffstat (limited to 'drivers/pwm/pwm-stm32-lp.c')
0 files changed, 0 insertions, 0 deletions
