Skip to content

Commit 9ad86d7

Browse files
committed
kconfig: remove unreachable printf()
Remove the unreachable code detected by clang. $ make HOSTCC=clang HOSTCFLAGS=-Wunreachable-code defconfig [ snip ] scripts/kconfig/expr.c:1134:2: warning: code will never be executed [-Wunreachable-code] printf("[%dgt%d?]", t1, t2); ^~~~~~ 1 warning generated. Signed-off-by: Masahiro Yamada <[email protected]>
1 parent 405d2cb commit 9ad86d7

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

scripts/kconfig/expr.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1131,7 +1131,6 @@ static int expr_compare_type(enum expr_type t1, enum expr_type t2)
11311131
default:
11321132
return -1;
11331133
}
1134-
printf("[%dgt%d?]", t1, t2);
11351134
return 0;
11361135
}
11371136

0 commit comments

Comments
 (0)