diff options
author | Stephen Boyd <[email protected]> | 2019-07-30 11:15:32 -0700 |
---|---|---|
committer | Will Deacon <[email protected]> | 2019-07-31 17:15:20 +0100 |
commit | 228f855fb57ae25599eee64a3f3db4f7f405b34f (patch) | |
tree | 39c391778830ec9ebbb5ee064d60e79b58abeb75 /scripts/patch-kernel | |
parent | 4b9ace9c25dc5d672a548da34cebf3a39710017f (diff) |
perf: 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: Will Deacon <[email protected]>
Cc: Mark Rutland <[email protected]>
Cc: [email protected]
Cc: Greg Kroah-Hartman <[email protected]>
Signed-off-by: Stephen Boyd <[email protected]>
Signed-off-by: Will Deacon <[email protected]>
Diffstat (limited to 'scripts/patch-kernel')
0 files changed, 0 insertions, 0 deletions