From 2e31934fd68f08ae9fda68c6e34735a74dacb3e5 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Thu, 7 Jul 2022 17:24:05 -0700 Subject: [PATCH] cgraph agsubnodeidcmpf: remove unnecessary casts --- lib/cgraph/node.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/cgraph/node.c b/lib/cgraph/node.c index 0f96ab778..4cb7fed8e 100644 --- a/lib/cgraph/node.c +++ b/lib/cgraph/node.c @@ -278,10 +278,9 @@ static int agsubnodeidcmpf(Dict_t * d, void *arg0, void *arg1, Dtdisc_t * disc) { (void)d; /* unused */ (void)disc; /* unused */ - Agsubnode_t *sn0, *sn1; - sn0 = (Agsubnode_t *) arg0; - sn1 = (Agsubnode_t *) arg1; + Agsubnode_t *sn0 = arg0; + Agsubnode_t *sn1 = arg1; if (AGID(sn0->node) < AGID(sn1->node)) return -1; if (AGID(sn0->node) > AGID(sn1->node)) return 1; -- 2.40.0