aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/checkpatch.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index d7a44fd3b224..25d716cc44dc 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -1791,9 +1791,9 @@ sub process {
1791 WARN("EXPORT_SYMBOL(foo); should immediately follow its function/variable\n" . $herecurr); 1791 WARN("EXPORT_SYMBOL(foo); should immediately follow its function/variable\n" . $herecurr);
1792 } 1792 }
1793 1793
1794# check for external initialisers. 1794# check for global initialisers.
1795 if ($line =~ /^.$Type\s*$Ident\s*(?:\s+$Modifier)*\s*=\s*(0|NULL|false)\s*;/) { 1795 if ($line =~ /^.$Type\s*$Ident\s*(?:\s+$Modifier)*\s*=\s*(0|NULL|false)\s*;/) {
1796 ERROR("do not initialise externals to 0 or NULL\n" . 1796 ERROR("do not initialise globals to 0 or NULL\n" .
1797 $herecurr); 1797 $herecurr);
1798 } 1798 }
1799# check for static initialisers. 1799# check for static initialisers.