![]() 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> |
||
---|---|---|
.. | ||
hantro.h | ||
hantro_drv.c | ||
hantro_g1_mpeg2_dec.c | ||
hantro_g1_regs.h | ||
hantro_h1_jpeg_enc.c | ||
hantro_h1_regs.h | ||
hantro_hw.h | ||
hantro_jpeg.c | ||
hantro_jpeg.h | ||
hantro_mpeg2.c | ||
hantro_v4l2.c | ||
hantro_v4l2.h | ||
Kconfig | ||
Makefile | ||
rk3288_vpu_hw.c | ||
rk3399_vpu_hw.c | ||
rk3399_vpu_hw_jpeg_enc.c | ||
rk3399_vpu_hw_mpeg2_dec.c | ||
rk3399_vpu_regs.h | ||
TODO |