summary refs log tree commit diff stats
path: root/scripts/checkpatch.pl
diff options
context:
space:
mode:
authorAnthony Liguori <aliguori@us.ibm.com>2011-07-19 08:04:35 -0500
committerAnthony Liguori <aliguori@us.ibm.com>2011-07-19 08:04:35 -0500
commit03ff09580ef6cbc4a893b6e3e6bbff33180ec70a (patch)
treee1133482f365abf9103e91538cc0e8e29806abe9 /scripts/checkpatch.pl
parentb4dabf9587d8e1d5d5edc6d3326021e390b9a532 (diff)
parent25a118130fde0d20b0f5a223642849b392b2f2ee (diff)
downloadfocaccia-qemu-03ff09580ef6cbc4a893b6e3e6bbff33180ec70a.tar.gz
focaccia-qemu-03ff09580ef6cbc4a893b6e3e6bbff33180ec70a.zip
Merge remote-tracking branch 'agraf/xen-next' into staging
Diffstat (limited to 'scripts/checkpatch.pl')
-rwxr-xr-xscripts/checkpatch.pl4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index 075b6149a3..70a2111d19 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -2068,8 +2068,10 @@ sub process {
 					}
 
 				# , must have a space on the right.
+                                # not required when having a single },{ on one line
 				} elsif ($op eq ',') {
-					if ($ctx !~ /.x[WEC]/ && $cc !~ /^}/) {
+					if ($ctx !~ /.x[WEC]/ && $cc !~ /^}/ &&
+                                            ($elements[$n] . $elements[$n + 2]) !~ " *}{") {
 						ERROR("space required after that '$op' $at\n" . $hereptr);
 					}