diff --git a/build-aux/check-spacing.pl b/build-aux/check-spacing.pl index a0fb1109de..becdbe9332 100755 --- a/build-aux/check-spacing.pl +++ b/build-aux/check-spacing.pl @@ -160,11 +160,8 @@ foreach my $file (@ARGV) { } # Require spaces around assignment '=', compounds and '==' - # with the exception of virAssertCmpInt() - $tmpdata = $data; - $tmpdata =~ s/(virAssertCmpInt\(.* ).?=,/$1op,/; - if ($tmpdata =~ /[^ ]\b[!<>&|\-+*\/%\^=]?=[^=]/ || - $tmpdata =~ /=[^= \\\n]/) { + if ($data =~ /[^ ]\b[!<>&|\-+*\/%\^=]?=/ || + $data =~ /=[^= \\\n]/) { print "Spacing around '=' or '==':\n"; print "$file:$.: $line"; $ret = 1;