aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/check-perf-trace.py
diff options
context:
space:
mode:
authorJulia Lawall <[email protected]>2009-11-22 10:11:16 -0800
committerTony Lindgren <[email protected]>2009-11-22 10:24:32 -0800
commit20e11c2d1c8ca49829ee9e5690adc89488e5da31 (patch)
tree621be172dfa44ee49052b97ae8913ac41e62d317 /tools/perf/scripts/python/check-perf-trace.py
parent13a032295710b49d331bb53086a7de4557243851 (diff)
arch/arm/plat-omap: Drop an unnecessary NULL test
map_iovm_area is only called from a context where its second argument is known not to be NULL, so drop the unnecessary test. If new could be NULL, the initialization of da should be moved below the test. A simplified version of the semantic match that detects this problem is as follows (http://coccinelle.lip6.fr/): // <smpl> @match exists@ expression x, E; identifier fld; @@ * x->fld ... when != \(x = E\|&x\) * x == NULL // </smpl> Signed-off-by: Julia Lawall <[email protected]> Cc: Russell King <[email protected]> Cc: Hiroshi DOYU <[email protected]> Signed-off-by: Tony Lindgren <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions