From: Matthew Fernandez Date: Fri, 6 May 2022 00:37:30 +0000 (-0700) Subject: tclpkg: remove unnecessary explicit dereference and parens on function pointer X-Git-Tag: 4.0.0~41^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e982e0e4cb9dc09d825db859b28c62b3e18a340a;p=graphviz tclpkg: remove unnecessary explicit dereference and parens on function pointer The compiler already knows how to dereference and call through a function pointer without needing explicit instruction. --- diff --git a/tclpkg/gdtclft/gdtclft.c b/tclpkg/gdtclft/gdtclft.c index 237488908..b45fb42f8 100644 --- a/tclpkg/gdtclft/gdtclft.c +++ b/tclpkg/gdtclft/gdtclft.c @@ -674,7 +674,7 @@ tclGdColorCmd(Tcl_Interp * interp, int argc, Tcl_Obj * CONST objv[]) } /* Call the subcommand function. */ - return (*colorCmdVec[subi].f) (interp, im, argc - 4, args); + return colorCmdVec[subi].f(interp, im, argc - 4, args); } } }