From 453bf19a9b137a69195ea2cd621910fa02b6e07f Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Thu, 3 Oct 2024 11:52:11 -0400 Subject: opt: Remove duplicate assignment in canonicalize_not() --- src/opt.c | 1 - 1 file changed, 1 deletion(-) (limited to 'src') 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); -- cgit v1.2.3