Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

kconfig: remove redundant check in expr_join_or()

The check for 'sym1 == sym2' is redundant here because it has already
been done a few lines above:

if (sym1 != sym2)
return NULL;

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>

+1 -1
+1 -1
scripts/kconfig/expr.c
··· 476 476 return expr_alloc_comp(E_UNEQUAL, sym1, &symbol_yes); 477 477 } 478 478 } 479 - if (sym1->type == S_BOOLEAN && sym1 == sym2) { 479 + if (sym1->type == S_BOOLEAN) { 480 480 if ((e1->type == E_NOT && e1->left.expr->type == E_SYMBOL && e2->type == E_SYMBOL) || 481 481 (e2->type == E_NOT && e2->left.expr->type == E_SYMBOL && e1->type == E_SYMBOL)) 482 482 return expr_alloc_symbol(&symbol_yes);