aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorJulia Lawall <[email protected]>2009-01-06 14:41:45 -0800
committerLinus Torvalds <[email protected]>2009-01-06 15:59:20 -0800
commit51e911e27690aecea01d4fe9cb22d38bdd0748ac (patch)
tree0da60b105c3a74ac10a5e34ed9aa0a18af5673ef /tools/perf/scripts/python
parentee9c1fbfe130a20e0f23d1693d6427dac97239bc (diff)
drivers/spi: move a dereference below a NULL test
In each case, if the NULL test is necessary, then the dereference should be moved below the NULL test. The semantic patch that makes this change is as follows: (http://www.emn.fr/x-info/coccinelle/) // <smpl> @@ type T; expression E; identifier i,fld; statement S; @@ - T i = E->fld; + T i; ... when != E when != i if (E == NULL) S + i = E->fld; // </smpl> Signed-off-by: Julia Lawall <[email protected]> Acked-by: David Brownell <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions