OpenCloudOS-Kernel/drivers/staging/most
Stephen Boyd 04d15d5cad staging: 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>
Link: https://lore.kernel.org/r/20190730181557.90391-43-swboyd@chromium.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-07-30 20:50:04 +02:00
..
Documentation staging: most: trivial: fix a couple of typos 2019-06-06 15:03:34 +02:00
cdev staging: most: Delete an error message for a failed memory allocation 2019-07-22 07:34:09 +02:00
dim2 staging: Remove dev_err() usage after platform_get_irq() 2019-07-30 20:50:04 +02:00
i2c staging: add missing SPDX lines to Makefile files 2019-04-03 11:10:15 +02:00
net staging: most: Use DEFINE_SPINLOCK() instead of struct spinlock 2019-07-30 09:52:04 +02:00
sound staging: most: sound: pass correct device when creating a sound card 2019-04-30 14:34:06 +02:00
usb staging: most: usb: remove prefix from description tag 2019-04-16 13:25:17 +02:00
video staging: most: Use DEFINE_SPINLOCK() instead of struct spinlock 2019-07-30 09:52:04 +02:00
Kconfig staging: most: use help instead of ---help--- in Kconfig 2019-05-20 10:49:07 +02:00
Makefile staging: most: enable configfs support 2019-04-16 13:25:17 +02:00
TODO
configfs.c staging: most: remove data sanity check 2019-07-03 18:28:28 +02:00
core.c staging: most-core: Use bus_find_device_by_name 2019-06-24 05:22:30 +02:00
core.h staging: most: allow speculative configuration 2019-04-16 13:25:18 +02:00