xtensa: no need to initialise statics to 0
authorJason Wang <wangborong@cdjrlc.com>
Sun, 8 May 2022 02:29:10 +0000 (10:29 +0800)
committerMax Filippov <jcmvbkbc@gmail.com>
Wed, 11 May 2022 09:15:35 +0000 (02:15 -0700)
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>
Message-Id: <20220508022910.98481-1-wangborong@cdjrlc.com>
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
arch/xtensa/platforms/xt2000/setup.c

index 145d129..0dc22c3 100644 (file)
@@ -78,7 +78,7 @@ void __init platform_init(bp_tag_t *first)
 
 void platform_heartbeat(void)
 {
-       static int i=0, t = 0;
+       static int i, t;
 
        if (--t < 0)
        {