commit | f39e1769bbfc4936ff8364fb2529dc8bf6bc6888 | [log] [tgz] |
---|---|---|
author | Joe Perches <joe@perches.com> | Fri May 20 17:04:02 2016 -0700 |
committer | Linus Torvalds <torvalds@linux-foundation.org> | Fri May 20 17:58:30 2016 -0700 |
tree | a3ed1a88fa0d29022c876037258ecb5827a2fea2 | |
parent | 2d6327459ec5e63a89b12945f483f6d7378a8839 [diff] |
checkpatch: improve CONSTANT_COMPARISON test for structure members A "." dereference to an all uppercase structure member can be incorrectly reported as a CONSTANT_COMPARISON. ie: "if (table[i].PANELID == tempdx)" Fix it by checking for "." before the constant test. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>