]> git.baikalelectronics.ru Git - kernel.git/commit
checkpatch: ensure we do not collapse bracketed sections into constants
authorAndy Whitcroft <apw@canonical.com>
Tue, 26 Oct 2010 21:23:12 +0000 (14:23 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 26 Oct 2010 23:52:19 +0000 (16:52 -0700)
commit1c8799343a790a92be6d2ebea1ccdd1ca5c2942e
tree6fba2ec80498dcb83615ea27907c89e979902c85
parent12a4d1faa138dae4d05aac026e99f1346e28013d
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 <mitake@dcl.info.waseda.ac.jp>
Signed-off-by: Andy Whitcroft <apw@canonical.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
scripts/checkpatch.pl