diff options
| author | Julia Lawall <[email protected]> | 2010-01-16 16:59:22 +0100 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2010-03-03 16:42:45 -0800 |
| commit | f51f90300010937bc9a2455cef88366448a6e718 (patch) | |
| tree | 0b019860fa0c9501e588203456d08cf669c65af9 /tools/perf/scripts/python | |
| parent | 79a22d5c264f5ddfc8573aa7eb234fe62dd1ee32 (diff) | |
Staging: go7007: Eliminate useless code
The variable s is initialized twice to the same (side effect-free)
expression. Drop one initialization.
A simplified version of the semantic match that finds this problem is:
(http://coccinelle.lip6.fr/)
// <smpl>
@forall@
idexpression *x;
identifier f!=ERR_PTR;
@@
x = f(...)
... when != x
(
x = f(...,<+...x...+>,...)
|
* x = f(...)
)
// </smpl>
Signed-off-by: Julia Lawall <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions