diff options
author | Andy Whitcroft <[email protected]> | 2010-10-26 14:23:12 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2010-10-26 16:52:19 -0700 |
commit | fb2d2c1b5825503d30fb6f2dc328dbe4a47d9794 (patch) | |
tree | 6fba2ec80498dcb83615ea27907c89e979902c85 /tools/perf/util/trace-event-scripting.c | |
parent | d2c0a23514d8ac4ed10a8e742467cfb72ca3bed8 (diff) |
checkpatch: ensure we do not collapse bracketed sections into constants
When determining if a return () sequence is a function style bracketing we
simplify the expression one bracket at a time replacing each with a
constant. However this can trigger a false merge with expressions as
below:
return (foo)0;
Prevent this false merging.
Reported-by: Hitoshi Mitake <[email protected]>
Signed-off-by: Andy Whitcroft <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions