Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

modpost: remove redundant initializes for static variables

These are initialized with zeros without explicit initializers.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>

+5 -5
+5 -5
scripts/mod/modpost.c
··· 23 23 #include "../../include/linux/license.h" 24 24 25 25 /* Are we using CONFIG_MODVERSIONS? */ 26 - static int modversions = 0; 26 + static int modversions; 27 27 /* Is CONFIG_MODULE_SRCVERSION_ALL set? */ 28 - static int all_versions = 0; 28 + static int all_versions; 29 29 /* If we are modposting external module set to 1 */ 30 - static int external_module = 0; 30 + static int external_module; 31 31 /* Only warn about unresolved symbols */ 32 - static int warn_unresolved = 0; 32 + static int warn_unresolved; 33 33 /* How a symbol is exported */ 34 - static int sec_mismatch_count = 0; 34 + static int sec_mismatch_count; 35 35 static int sec_mismatch_warn_only = true; 36 36 /* ignore missing files */ 37 37 static int ignore_missing_files;