diff options
author | Jason Wang <wangborong@cdjrlc.com> | 2022-05-08 04:29:10 +0200 |
---|---|---|
committer | Max Filippov <jcmvbkbc@gmail.com> | 2022-05-11 11:15:35 +0200 |
commit | c6ab42b31fce42c4b7f775752d91db0f2b71c65e (patch) | |
tree | 2ee3ffc687f6081be8134cd181eef1bda0664369 | |
parent | xtensa: clean up labels in the kernel entry assembly (diff) | |
download | linux-c6ab42b31fce42c4b7f775752d91db0f2b71c65e.tar.xz linux-c6ab42b31fce42c4b7f775752d91db0f2b71c65e.zip |
xtensa: 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>
Message-Id: <20220508022910.98481-1-wangborong@cdjrlc.com>
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
-rw-r--r-- | arch/xtensa/platforms/xt2000/setup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/xtensa/platforms/xt2000/setup.c b/arch/xtensa/platforms/xt2000/setup.c index 145d129be76f..0dc22c371614 100644 --- a/arch/xtensa/platforms/xt2000/setup.c +++ b/arch/xtensa/platforms/xt2000/setup.c @@ -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) { |