]> git.proxmox.com Git - mirror_qemu.git/commit
checkpatch: Eliminate false positive in case of comma-space-square bracket
authorLeonid Bloch <leonid@daynix.com>
Thu, 29 Oct 2015 09:48:37 +0000 (11:48 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 15 Feb 2016 19:02:09 +0000 (20:02 +0100)
commit409db6eb7199af7a2f09f746bd1b793e9daefe5f
tree5b0a9510036e1cad139724c9ed88fcad0605bc72
parent80b5d6bfc1280fa06e2514a414690c0e5b4b514b
checkpatch: Eliminate false positive in case of comma-space-square bracket

Previously, an error was printed in cases such as:
{ [1] = 5, [2] = 6 }
The space passed OK after a curly brace, but not after a comma.
Now, a space before a square bracket is allowed, if a comma comes before
it.

Signed-off-by: Leonid Bloch <leonid@daynix.com>
Message-Id: <1446112118-12376-2-git-send-email-leonid@daynix.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
scripts/checkpatch.pl