aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/perf/fsl_imx8_ddr_perf.c
diff options
context:
space:
mode:
authorStephen Boyd <[email protected]>2019-07-30 18:15:32 +0000
committerWill Deacon <[email protected]>2019-07-31 16:15:20 +0000
commit228f855fb57ae25599eee64a3f3db4f7f405b34f (patch)
tree39c391778830ec9ebbb5ee064d60e79b58abeb75 /drivers/perf/fsl_imx8_ddr_perf.c
parentperf/imx_ddr: Add MODULE_DEVICE_TABLE (diff)
downloadkernel-228f855fb57ae25599eee64a3f3db4f7f405b34f.tar.gz
kernel-228f855fb57ae25599eee64a3f3db4f7f405b34f.zip
perf: 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). Cc: Will Deacon <[email protected]> Cc: Mark Rutland <[email protected]> Cc: [email protected] Cc: Greg Kroah-Hartman <[email protected]> Signed-off-by: Stephen Boyd <[email protected]> Signed-off-by: Will Deacon <[email protected]>
Diffstat (limited to 'drivers/perf/fsl_imx8_ddr_perf.c')
0 files changed, 0 insertions, 0 deletions