aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/boot
diff options
context:
space:
mode:
authorJason Wang <wangborong@cdjrlc.com>2022-05-08 10:31:46 +0800
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>2022-05-12 18:00:15 +0200
commita4fa106ee1e146a1955e81337ad95f0cc5c20592 (patch)
tree41f30240625becdf8be89e57797e01e96887eed8 /arch/mips/boot
parentMIPS: Loongson: Use hwmon_device_register_with_groups() to register hwmon (diff)
downloadlinux-dev-a4fa106ee1e146a1955e81337ad95f0cc5c20592.tar.xz
linux-dev-a4fa106ee1e146a1955e81337ad95f0cc5c20592.zip
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>
Diffstat (limited to 'arch/mips/boot')
-rw-r--r--arch/mips/boot/tools/relocs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/boot/tools/relocs.c b/arch/mips/boot/tools/relocs.c
index 1bf53f3524b3..02fc85f3e8ff 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) {