Stephen Boyd
0bec8b7e5c
Input: 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: Dmitry Torokhov <dmitry.torokhov@gmail.com >
2019-08-14 10:49:01 -07:00
..
2019-08-14 10:49:01 -07:00
2019-08-14 10:49:01 -07:00
2019-08-14 10:49:01 -07:00
2019-05-30 11:25:18 -07:00
2019-05-30 11:25:18 -07:00
2019-05-30 11:25:18 -07:00
2019-05-30 11:25:18 -07:00
2019-05-30 11:25:18 -07:00
2019-05-30 11:25:18 -07:00
2019-05-30 11:25:18 -07:00
2019-05-30 11:25:18 -07:00
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:55 +02:00
2019-05-30 11:26:35 -07:00
2019-06-05 17:36:37 +02:00
2019-08-14 10:49:01 -07:00
2019-05-24 17:36:45 +02:00
2019-06-05 17:37:10 +02:00
2019-06-19 17:09:07 +02:00
2019-06-19 17:09:07 +02:00
2019-06-19 17:09:07 +02:00
2019-05-21 11:28:39 +02:00
2017-04-11 15:18:09 +01:00
2019-05-30 11:26:32 -07:00
2019-08-14 10:49:01 -07:00
2019-08-14 10:49:01 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:41 -07:00
2019-05-30 11:26:41 -07:00
2019-05-30 11:26:41 -07:00
2019-08-14 10:49:01 -07:00
2019-06-19 17:09:55 +02:00
2017-01-18 11:49:13 -08:00
2019-05-30 11:26:32 -07:00
2019-04-30 00:11:25 -07:00
2019-08-14 10:49:01 -07:00
2018-12-10 22:40:14 +01:00
2019-05-30 11:26:32 -07:00
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:55 +02:00
2019-07-28 12:58:43 +03:00
2019-06-05 17:37:10 +02:00
2019-06-05 17:37:06 +02:00
2019-06-19 17:09:55 +02:00
2019-05-14 10:39:08 -07:00
2019-08-14 10:49:01 -07:00
2019-05-30 11:26:35 -07:00
2019-07-05 10:18:07 -07:00
2019-05-30 11:26:32 -07:00
2014-10-20 16:20:40 +02:00
2019-05-24 17:36:45 +02:00
2019-03-09 15:57:15 -08:00
2015-03-19 12:16:18 -07:00
2019-06-19 17:09:55 +02:00
2019-05-30 11:25:18 -07:00
2019-05-30 11:26:32 -07:00
2019-06-19 17:09:55 +02:00
2019-06-05 17:36:37 +02:00
2019-08-14 10:49:01 -07:00
2019-06-05 17:36:37 +02:00
2019-05-21 10:50:45 +02:00
2019-05-30 11:26:28 -07:00
2019-05-30 11:26:32 -07:00
2018-03-08 15:34:45 -08:00
2019-05-21 10:50:45 +02:00
2019-06-19 17:09:55 +02:00
2017-01-21 23:53:34 -08:00
2019-08-14 10:49:01 -07:00
2019-06-19 17:09:55 +02:00
2018-06-04 13:36:11 -07:00
2019-05-21 11:28:39 +02:00
2019-05-21 11:28:40 +02:00
2019-07-28 12:58:43 +03:00
2019-05-21 10:50:45 +02:00
2019-08-14 10:49:01 -07:00
2019-08-14 10:49:01 -07:00
2017-09-04 14:41:02 +01:00
2019-06-05 17:37:07 +02:00
2019-08-14 10:49:01 -07:00
2019-06-19 11:26:09 -07:00
2019-06-05 17:37:14 +02:00
2015-05-15 15:58:42 -07:00
2018-10-16 17:12:48 -07:00
2019-05-30 11:26:35 -07:00
2019-05-30 11:26:35 -07:00