1
0
Fork 0
alistair23-linux/drivers/staging/vc04_services/interface/vchiq_arm
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
..
vchiq.h staging: vc04_services: remove remaining redundant license text 2019-04-03 11:10:16 +02:00
vchiq_2835_arm.c staging: Remove dev_err() usage after platform_get_irq() 2019-07-30 20:50:04 +02:00
vchiq_arm.c staging: vc04_services: fix unused-but-set-variable warning 2019-07-30 09:52:04 +02:00
vchiq_arm.h staging: vc04_services: Remove vchiq_arm_force_suspend() 2019-06-26 09:58:47 +08:00
vchiq_cfg.h staging: vc04_services: remove remaining redundant license text 2019-04-03 11:10:16 +02:00
vchiq_connected.c staging: vchiq: stop explicitly comparing with zero to catch errors 2019-05-20 07:40:42 +02:00
vchiq_connected.h staging: vc04_services: remove remaining redundant license text 2019-04-03 11:10:16 +02:00
vchiq_core.c staging: vc04_services: Remove vchiq_send_remote_release() 2019-06-26 09:58:48 +08:00
vchiq_core.h staging: vc04_services: Remove vchiq_send_remote_release() 2019-06-26 09:58:48 +08:00
vchiq_debugfs.c staging: vchiq: stop explicitly comparing with zero to catch errors 2019-05-20 07:40:42 +02:00
vchiq_debugfs.h staging: vc04_services: remove remaining redundant license text 2019-04-03 11:10:16 +02:00
vchiq_if.h staging: vc04_services: Remove vchiq_use_service_no_resume() 2019-06-26 09:58:48 +08:00
vchiq_ioctl.h staging: vc04_services: remove remaining redundant license text 2019-04-03 11:10:16 +02:00
vchiq_pagelist.h staging: vc04_services: remove remaining redundant license text 2019-04-03 11:10:16 +02:00
vchiq_shim.c staging: vc04_services: remove redundant assignment to pointer service 2019-06-03 14:14:55 +02:00
vchiq_util.c staging: vc04_services: Remove function vchiu_queue_is_full() 2019-06-26 09:58:47 +08:00
vchiq_util.h staging: vc04_services: Remove function vchiu_queue_is_full() 2019-06-26 09:58:47 +08:00