Skip to content

Commit a4fa106

Browse files
Jason Wangtsbogend
authored andcommitted
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 <wangborong@cdjrlc.com> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
1 parent abae018 commit a4fa106

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

arch/mips/boot/tools/relocs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ static void read_symtabs(FILE *fp)
351351

352352
static void read_relocs(FILE *fp)
353353
{
354-
static unsigned long base = 0;
354+
static unsigned long base;
355355
int i, j;
356356

357357
if (!base) {

0 commit comments

Comments
 (0)