Skip to content

Commit 36ef3da

Browse files
Flavio Ceolinnashif
authored andcommitted
arch: xtensa: fatal: Comply with MISRA Rule 14.4
Use boolean expression in a controlling expression. Signed-off-by: Flavio Ceolin <[email protected]>
1 parent 490251d commit 36ef3da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/xtensa/core/fatal.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ char *xtensa_exccause(unsigned int cause_code)
8787
void xtensa_fatal_error(unsigned int reason, const struct arch_esf *esf)
8888
{
8989
#ifdef CONFIG_EXCEPTION_DEBUG
90-
if (esf) {
90+
if (esf != NULL) {
9191
/* Don't want to get elbowed by xtensa_switch
9292
* in between printing registers and dumping them;
9393
* corrupts backtrace

0 commit comments

Comments
 (0)