forked from Minki/linux
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>
This commit is contained in:
parent
7f9c974174
commit
c6ab42b31f
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user