Skip to content
Snippets Groups Projects
Commit 440f67cc authored by Masahiro Yamada's avatar Masahiro Yamada
Browse files

kconfig: refactor expr_eliminate_dups()


Currently, expr_eliminate_dups() passes two identical pointers down to
expr_eliminate_dups1(), which later skips processing identical leaves.

This approach is somewhat tricky and, more importantly, it will not work
with the refactoring made in the next commit.

This commit slightly changes the recursion logic; it deduplicates both
the left and right arms, and then passes them to expr_eliminate_dups1().
expr_eliminate_dups() should produce the same result.

Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
parent 4fa146ea
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment