utilities/checkpatch.py: Check for appropriate bracing
authorAaron Conole <aconole@redhat.com>
Fri, 20 May 2016 15:52:59 +0000 (11:52 -0400)
committerBen Pfaff <blp@ovn.org>
Fri, 20 May 2016 17:07:50 +0000 (10:07 -0700)
commit30c7ffd5ac46b545687d59ba612b1ce070f09df8
tree7b20e181c2402d8bddc6e5414e0264bf68a0d780
parent49558bf6da757bf68e6a765545ef955fe5e6c1e0
utilities/checkpatch.py: Check for appropriate bracing

Teach checkpatch.py to understand that if/for/while blocks should always
end with braces on the same line (if possible). This does not address
multi-line if/for/while blocks, but provides a point where such blocks
could be added.

Signed-off-by: Aaron Conole <aconole@redhat.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
utilities/checkpatch.py