aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorJulia Lawall <[email protected]>2009-07-19 17:29:57 +0200
committerGreg Kroah-Hartman <[email protected]>2009-09-23 06:46:29 -0700
commit64aebe73152ab3a9f5f426baaf65db632bd72c13 (patch)
treeb96e307aed23b98bd83c1096da8619e0d042849d /tools/perf/scripts/python
parent981e60f037631ca725a9790e7b3512de4a60bba8 (diff)
USB: storage: Drop an unneeded a NULL test
In each case, the NULL test is not necessary because the function is static and at the only places where it is called, the us argument has already been dereferenced. The semantic patch that finds the problem 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 <[email protected]> Cc: Matthew Dharm <[email protected]> Cc: Alan Stern <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions