From ae636e57d1556f9318445433c521b57dda4b0228 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sat, 26 Feb 2022 11:03:00 -0800 Subject: [PATCH] expr: [nfc] remove unnecessary parens and dereference of 'exitf' The C compiler knows how to dereference and call through a function pointer without needing this manual instruction. --- lib/expr/exeval.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/expr/exeval.c b/lib/expr/exeval.c index 366153f41..f9f14cd7d 100644 --- a/lib/expr/exeval.c +++ b/lib/expr/exeval.c @@ -1243,7 +1243,7 @@ eval(Expr_t* ex, Exnode_t* expr, void* env) case EXIT: v = eval(ex, x, env); if (ex->disc->exitf) - (*ex->disc->exitf) (ex, env, (int)v.integer); + ex->disc->exitf(ex, env, (int)v.integer); else graphviz_exit((int)v.integer); /*NOTREACHED*/ -- 2.40.0