Repository navigation
Commit 802d9bd
mfd: 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).
Signed-off-by: Stephen Boyd <swboyd@chromium.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>1 parent b620c17 commit 802d9bd
6 files changed
Lines changed: 9 additions & 27 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2680 | 2680 | | |
2681 | 2681 | | |
2682 | 2682 | | |
2683 | | - | |
2684 | | - | |
| 2683 | + | |
2685 | 2684 | | |
2686 | | - | |
2687 | 2685 | | |
2688 | 2686 | | |
2689 | | - | |
2690 | | - | |
| 2687 | + | |
2691 | 2688 | | |
2692 | | - | |
2693 | 2689 | | |
2694 | 2690 | | |
2695 | 2691 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3130 | 3130 | | |
3131 | 3131 | | |
3132 | 3132 | | |
3133 | | - | |
3134 | | - | |
| 3133 | + | |
3135 | 3134 | | |
3136 | | - | |
3137 | 3135 | | |
3138 | 3136 | | |
3139 | 3137 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
73 | | - | |
| 72 | + | |
74 | 73 | | |
75 | | - | |
76 | 74 | | |
77 | 75 | | |
78 | 76 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
450 | 450 | | |
451 | 451 | | |
452 | 452 | | |
453 | | - | |
454 | | - | |
| 453 | + | |
455 | 454 | | |
456 | | - | |
457 | 455 | | |
458 | 456 | | |
459 | 457 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
561 | 561 | | |
562 | 562 | | |
563 | 563 | | |
564 | | - | |
565 | | - | |
| 564 | + | |
566 | 565 | | |
567 | | - | |
568 | 566 | | |
569 | 567 | | |
570 | | - | |
571 | | - | |
| 568 | + | |
572 | 569 | | |
573 | | - | |
574 | 570 | | |
575 | 571 | | |
576 | | - | |
577 | | - | |
| 572 | + | |
578 | 573 | | |
579 | | - | |
580 | 574 | | |
581 | 575 | | |
582 | 576 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1394 | 1394 | | |
1395 | 1395 | | |
1396 | 1396 | | |
1397 | | - | |
1398 | | - | |
| 1397 | + | |
1399 | 1398 | | |
1400 | | - | |
1401 | 1399 | | |
1402 | 1400 | | |
1403 | 1401 | | |
| |||
0 commit comments