linux_dsm_epyc7002/drivers/usb/mtu3
Stephen Boyd b33f37064b usb: 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-47-swboyd@chromium.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-07-30 20:29:18 +02:00
..
Kconfig usb: mtu3: fix EXTCON dependency 2019-03-26 16:48:56 +09:00
Makefile usb: mtu3: add tracepoints to help debug 2019-03-26 16:40:14 +09:00
mtu3_core.c usb: Remove dev_err() usage after platform_get_irq() 2019-07-30 20:29:18 +02:00
mtu3_debug.h usb: mtu3: add tracepoints to help debug 2019-03-26 16:40:14 +09:00
mtu3_debugfs.c Revert "usb: mtu3: fix up undefined reference to usb_debug_root" 2019-06-10 19:43:57 +02:00
mtu3_dr.c usb: mtu3: add a function to switch mailbox state to string 2019-03-26 16:40:14 +09:00
mtu3_dr.h usb: mtu3: move vbus and mode debugfs interfaces into mtu3_debugfs.c 2019-03-26 16:40:14 +09:00
mtu3_gadget_ep0.c usb: mtu3: add tracepoints to help debug 2019-03-26 16:40:14 +09:00
mtu3_gadget.c usb: mtu3: add tracepoints to help debug 2019-03-26 16:40:14 +09:00
mtu3_host.c usb: mtu3: fix semicolon.cocci warnings 2018-01-16 10:01:01 +01:00
mtu3_hw_regs.h usb: mtu3: add debugfs interface files 2019-03-26 16:40:14 +09:00
mtu3_plat.c usb: mtu3: get optional clock by devm_clk_get_optional() 2019-04-19 14:24:26 +02:00
mtu3_qmu.c usb: mtu3: add tracepoints to help debug 2019-03-26 16:40:14 +09:00
mtu3_qmu.h usb: mtu3: supports new QMU format 2019-03-26 16:40:13 +09:00
mtu3_trace.c usb: mtu3: add tracepoints to help debug 2019-03-26 16:40:14 +09:00
mtu3_trace.h usb: mtu3: add tracepoints to help debug 2019-03-26 16:40:14 +09:00
mtu3.h usb: mtu3: supports new QMU format 2019-03-26 16:40:13 +09:00