Subject: Remove unnecessary error about initialising statics to 0 or NULL Signed-off-by: John Kacur Index: linux-2.6/scripts/checkpatch.pl =================================================================== --- linux-2.6.orig/scripts/checkpatch.pl +++ linux-2.6/scripts/checkpatch.pl @@ -1341,11 +1341,6 @@ sub process { ERROR("do not initialise externals to 0 or NULL\n" . $herecurr); } -# check for static initialisers. - if ($line =~ /\s*static\s.*=\s*(0|NULL|false)\s*;/) { - ERROR("do not initialise statics to 0 or NULL\n" . - $herecurr); - } # check for new typedefs, only function parameters and sparse annotations # make sense.