summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2024-10-03 11:52:11 -0400
committerTavian Barnes <tavianator@tavianator.com>2024-10-04 16:07:27 -0400
commit453bf19a9b137a69195ea2cd621910fa02b6e07f (patch)
treefebd94a35d11dfde565de58ccf85aab580ade481
parentf5eaadb96fb94b2d3666e53a99495840a3099aec (diff)
downloadbfs-453bf19a9b137a69195ea2cd621910fa02b6e07f.tar.xz
opt: Remove duplicate assignment in canonicalize_not()
-rw-r--r--src/opt.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/opt.c b/src/opt.c
index b50c1ef..49e8873 100644
--- a/src/opt.c
+++ b/src/opt.c
@@ -1433,7 +1433,6 @@ static struct bfs_expr *canonicalize_not(struct bfs_opt *opt, struct bfs_expr *e
if (rhs->eval_fn == eval_not) {
opt_debug(opt, "double negation\n");
- rhs = only_child(expr);
return only_child(rhs);
} else if (rhs->eval_fn == eval_and || rhs->eval_fn == eval_or) {
return sink_not_andor(opt, expr);