1 // SPDX-License-Identifier: GPL-2.0
2 /// Remove dev_err() messages after platform_get_irq*() failures
5 // Options: --include-headers
14 struct platform_device *E;
21 platform_get_irq_byname
24 if ( \( ret < 0 \| ret <= 0 \) )
27 if (ret != -EPROBE_DEFER)
40 struct platform_device *E;
47 platform_get_irq_byname
50 if ( \( ret < 0 \| ret <= 0 \) )
53 -if (ret != -EPROBE_DEFER)
64 @r depends on org || report@
67 struct platform_device *E;
74 platform_get_irq_byname
77 if ( \( ret < 0 \| ret <= 0 \) )
80 if (ret != -EPROBE_DEFER)
91 @script:python depends on org@
97 @script:python depends on report@
101 msg = "line %s is redundant because platform_get_irq() already prints an error" % (p1[0].line)
102 coccilib.report.print_report(p1[0],msg)