aboutsummaryrefslogtreecommitdiff
path: root/scripts/tracing
diff options
context:
space:
mode:
authorJulia Lawall <julia@diku.dk>2008-12-19 18:11:25 +0100
committerGreg Kroah-Hartman <gregkh@suse.de>2009-04-03 14:53:27 -0700
commit41e847890acbee5db65430c1d4f8d7ac07813140 (patch)
treeaed344ab9efbc81c7b6756bf56ceb67263029d42 /scripts/tracing
parentfd1f72b1827075d05b09658e55923eafecbf115e (diff)
Staging: go7007: 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/). The result has been modified to move the initialization of usb down closer to where it is used. // <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 <julia@diku.dk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'scripts/tracing')
0 files changed, 0 insertions, 0 deletions