Skip to content

Commit 45a4f38

Browse files
williamtcdnscfriedt
authored andcommitted
xtensa: suppress warning on variable used uninitialized
This change suppress the warning: variable 'ie' is used uninitialized whenever switch default is taken [-Wsometimes-uninitialized] Signed-off-by: William Tambe <[email protected]>
1 parent 611f381 commit 45a4f38

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/xtensa/core/irq_manage.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ int xtensa_irq_is_enabled(unsigned int irq)
122122
break;
123123
#endif
124124
default:
125+
ie = 0;
125126
break;
126127
}
127128
#else

0 commit comments

Comments
 (0)