diff options
author | Lucas De Marchi <[email protected]> | 2011-06-10 02:36:05 -0300 |
---|---|---|
committer | Eric W. Biederman <[email protected]> | 2012-01-24 16:37:54 -0800 |
commit | 36885d7b1121c779e4060d45472fe53a5b21e09f (patch) | |
tree | 8f4717d0308045e9478fd6a1a11a3d8153647a72 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | dcd6c92267155e70a94b3927bce681ce74b80d1f (diff) |
sysctl: remove impossible condition check
Remove checks for conditions that will never happen. If procname is NULL
the loop would already had bailed out, so there's no need to check it
again.
At the same time this also compacts the function find_in_table() by
refactoring it to be easier to read.
Signed-off-by: Lucas De Marchi <[email protected]>
Reviewed-by: Jesper Juhl <[email protected]>
Signed-off-by: Eric W. Biederman <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions