Skip to content

Commit c6ab42b

Browse files
Jason Wangjcmvbkbc
authored andcommitted
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 <[email protected]> Message-Id: <[email protected]> Signed-off-by: Max Filippov <[email protected]>
1 parent 7f9c974 commit c6ab42b

File tree

1 file changed

+1
-1
lines changed
  • arch/xtensa/platforms/xt2000

1 file changed

+1
-1
lines changed

arch/xtensa/platforms/xt2000/setup.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ void __init platform_init(bp_tag_t *first)
7878

7979
void platform_heartbeat(void)
8080
{
81-
static int i=0, t = 0;
81+
static int i, t;
8282

8383
if (--t < 0)
8484
{

0 commit comments

Comments
 (0)