aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xscripts/checkpatch.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index 6f821a0e0024..114821364c00 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -858,7 +858,7 @@ sub annotate_values {
858 print "CLOSE($1)\n" if ($dbg_values > 1); 858 print "CLOSE($1)\n" if ($dbg_values > 1);
859 $type = 'N'; 859 $type = 'N';
860 860
861 } elsif ($cur =~ /^(-(?![->])|\+(?!\+)|\*|\&(?!\&))/o) { 861 } elsif ($cur =~ /^(-(?![->])|\+(?!\+)|\*|\&\&|\&)/o) {
862 my $variant; 862 my $variant;
863 863
864 print "OPV($1)\n" if ($dbg_values > 1); 864 print "OPV($1)\n" if ($dbg_values > 1);
@@ -1634,7 +1634,7 @@ sub process {
1634 # unary operator, or a cast 1634 # unary operator, or a cast
1635 } elsif ($op eq '!' || $op eq '~' || 1635 } elsif ($op eq '!' || $op eq '~' ||
1636 $opv eq '*U' || $opv eq '-U' || 1636 $opv eq '*U' || $opv eq '-U' ||
1637 $opv eq '&U') { 1637 $opv eq '&U' || $opv eq '&&U') {
1638 if ($ctx !~ /[WEBC]x./ && $ca !~ /(?:\)|!|~|\*|-|\&|\||\+\+|\-\-|\{)$/) { 1638 if ($ctx !~ /[WEBC]x./ && $ca !~ /(?:\)|!|~|\*|-|\&|\||\+\+|\-\-|\{)$/) {
1639 ERROR("space required before that '$op' $at\n" . $hereptr); 1639 ERROR("space required before that '$op' $at\n" . $hereptr);
1640 } 1640 }