MIPS: tools: no need to initialise statics to 0
authorJason Wang <wangborong@cdjrlc.com>
Sun, 8 May 2022 02:31:46 +0000 (10:31 +0800)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Thu, 12 May 2022 16:00:15 +0000 (18:00 +0200)
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 <wangborong@cdjrlc.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/boot/tools/relocs.c

index 1bf53f3..02fc85f 100644 (file)
@@ -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) {