linux_dsm_epyc7002/drivers/usb/dwc3
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
..
core.c usb: dwc3: Switch to use device_property_count_u32() 2019-07-25 11:07:41 +02:00
core.h usb: dwc3: remove unused @lock member of dwc3_ep struct 2019-06-20 11:50:19 +03:00
debug.h Revert "usb:gadget Separated decoding functions from dwc3 driver." 2019-07-04 13:02:09 +02:00
debugfs.c
drd.c
dwc3-exynos.c
dwc3-haps.c
dwc3-keystone.c usb: Remove dev_err() usage after platform_get_irq() 2019-07-30 20:29:18 +02:00
dwc3-meson-g12a.c usb: dwc3: meson-g12a: Add support for IRQ based OTG switching 2019-06-18 11:58:28 +03:00
dwc3-of-simple.c drm pull request for 5.2 2019-05-08 21:35:19 -07:00
dwc3-omap.c usb: Remove dev_err() usage after platform_get_irq() 2019-07-30 20:29:18 +02:00
dwc3-pci.c usb: dwc3: pci: add support for TigerLake Devices 2019-07-03 10:45:11 +03:00
dwc3-qcom.c usb: dwc3: qcom: Use of_clk_get_parent_count() 2019-06-18 11:58:29 +03:00
dwc3-st.c
ep0.c usb: dwc3: gadget: Add support for disabling U1 and U2 entries 2019-06-18 11:58:30 +03:00
gadget.c usb: dwc3: remove unused @lock member of dwc3_ep struct 2019-06-20 11:50:19 +03:00
gadget.h usb: dwc3: gadget: Add support for disabling U1 and U2 entries 2019-06-18 11:58:30 +03:00
host.c
io.h
Kconfig usb: dwc3: qcom: Add support for booting with ACPI 2019-06-18 11:58:29 +03:00
Makefile
trace.c
trace.h Revert "usb:gadget Separated decoding functions from dwc3 driver." 2019-07-04 13:02:09 +02:00
ulpi.c