aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/parse_kconfig/cnfexpr.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/scripts/parse_kconfig/cnfexpr.c b/scripts/parse_kconfig/cnfexpr.c
index 2a22a3c..c9151bf 100644
--- a/scripts/parse_kconfig/cnfexpr.c
+++ b/scripts/parse_kconfig/cnfexpr.c
@@ -151,9 +151,7 @@ struct cnfexpr *cnf_eql(struct symlist *sl, bool not, struct symbol *sym1,
return fls;
}
if (!strcmp(sym2->name, "n")) {
- struct cnfexpr *w = cnf_sym(sl, not, sym1);
- w->exprs[0][0] *= -1;
- return w;
+ return cnf_sym(sl, !not, sym1);
}
if (!strcmp(sym2->name, "y")) {
return cnf_sym(sl, not, sym1);