From: Jason Wang Date: Sun, 8 May 2022 02:31:46 +0000 (+0800) Subject: MIPS: tools: no need to initialise statics to 0 X-Git-Tag: v6.6.17~7398^2~16 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a4fa106ee1e146a1955e81337ad95f0cc5c20592;p=platform%2Fkernel%2Flinux-rpi.git MIPS: tools: no need to initialise statics to 0 Static variables do not need to be initialised to 0, because compiler will initialise all uninitialised statics to 0. Thus, remove the unneeded initializations. Signed-off-by: Jason Wang Signed-off-by: Thomas Bogendoerfer --- diff --git a/arch/mips/boot/tools/relocs.c b/arch/mips/boot/tools/relocs.c index 1bf53f3..02fc85f 100644 --- a/arch/mips/boot/tools/relocs.c +++ b/arch/mips/boot/tools/relocs.c @@ -351,7 +351,7 @@ static void read_symtabs(FILE *fp) static void read_relocs(FILE *fp) { - static unsigned long base = 0; + static unsigned long base; int i, j; if (!base) {