From e982e0e4cb9dc09d825db859b28c62b3e18a340a Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Thu, 5 May 2022 17:37:30 -0700 Subject: [PATCH] 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. --- tclpkg/gdtclft/gdtclft.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } } } -- 2.40.0