OpenCloudOS-Kernel/drivers/usb/gadget/udc/bdc
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: add missing SPDX lines to Kconfig and Makefiles 2019-01-22 09:08:17 +01:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
bdc.h USB: gadget: udc: Remove redundant license text 2017-11-07 15:45:02 +01:00
bdc_cmd.c usb: gadget: fix various indentation issues 2019-02-07 13:14:51 +02:00
bdc_cmd.h USB: gadget: udc: Remove redundant license text 2017-11-07 15:45:02 +01:00
bdc_core.c usb: Remove dev_err() usage after platform_get_irq() 2019-07-30 20:29:18 +02:00
bdc_dbg.c USB: gadget: udc: Remove redundant license text 2017-11-07 15:45:02 +01:00
bdc_dbg.h USB: gadget: udc: Remove redundant license text 2017-11-07 15:45:02 +01:00
bdc_ep.c treewide: kzalloc() -> kcalloc() 2018-06-12 16:19:22 -07:00
bdc_ep.h USB: gadget: udc: Remove redundant license text 2017-11-07 15:45:02 +01:00
bdc_pci.c USB: gadget: udc: Add missing platform_device_put() on error in bdc_pci_probe() 2018-02-15 15:28:13 +02:00
bdc_udc.c USB: gadget: udc: Remove redundant license text 2017-11-07 15:45:02 +01:00