mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-26 07:40:54 +07:00
b33f37064b
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> |
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
mtu3_core.c | ||
mtu3_debug.h | ||
mtu3_debugfs.c | ||
mtu3_dr.c | ||
mtu3_dr.h | ||
mtu3_gadget_ep0.c | ||
mtu3_gadget.c | ||
mtu3_host.c | ||
mtu3_hw_regs.h | ||
mtu3_plat.c | ||
mtu3_qmu.c | ||
mtu3_qmu.h | ||
mtu3_trace.c | ||
mtu3_trace.h | ||
mtu3.h |