From: Matthew Fernandez Date: Sat, 26 Feb 2022 19:03:00 +0000 (-0800) Subject: expr: [nfc] remove unnecessary parens and dereference of 'exitf' X-Git-Tag: 4.0.0~204^2~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ae636e57d1556f9318445433c521b57dda4b0228;p=graphviz 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. --- 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*/