]> granicus.if.org Git - graphviz/commitdiff
tclpkg: remove unnecessary explicit dereference and parens on function pointer
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Fri, 6 May 2022 00:37:30 +0000 (17:37 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Thu, 12 May 2022 02:30:18 +0000 (19:30 -0700)
The compiler already knows how to dereference and call through a function
pointer without needing explicit instruction.

tclpkg/gdtclft/gdtclft.c

index 2374889088e07095d08dbc96d70451b209deb60a..b45fb42f8670d845eab98d50d0f131c47ca95605 100644 (file)
@@ -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);
            }
        }
     }