aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/checkpatch.pl
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/checkpatch.pl')
-rwxr-xr-xscripts/checkpatch.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index 906624c0e9e6..a521d493b0c8 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -1632,7 +1632,7 @@ sub process {
1632 $herecurr); 1632 $herecurr);
1633 } 1633 }
1634# check for static initialisers. 1634# check for static initialisers.
1635 if ($line =~ /\s*static\s.*=\s*(0|NULL|false)\s*;/) { 1635 if ($line =~ /\bstatic\s.*=\s*(0|NULL|false)\s*;/) {
1636 ERROR("do not initialise statics to 0 or NULL\n" . 1636 ERROR("do not initialise statics to 0 or NULL\n" .
1637 $herecurr); 1637 $herecurr);
1638 } 1638 }