aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/cpuidle
diff options
context:
space:
mode:
authorJulia Lawall <julia@diku.dk>2009-07-19 11:26:13 -0400
committerJiri Kosina <jkosina@suse.cz>2009-07-19 18:03:35 -0400
commit76c317d6e5cb7f58541879006d39774596962715 (patch)
treec92ad2c0b1e4b849d99bf6c97df87b637f1fd4f6 /drivers/cpuidle
parent4859484b0957ddc7fe3e0fa349d98b0f1c7876bd (diff)
HID: Move dereferences below a NULL test
If the NULL test is necessary, then the dereferences 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,E1; identifier i,fld; statement S; @@ - T i = E->fld; + T i; ... when != E=E1 when != i if (E == NULL||...) S + i = E->fld; // </smpl> Signed-off-by: Julia Lawall <julia@diku.dk> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/cpuidle')
0 files changed, 0 insertions, 0 deletions