From 02d8b80ce4cc4a741ac796df453668b43b3e5d0f Mon Sep 17 00:00:00 2001 From: Donatas Abraitis Date: Fri, 29 Sep 2023 09:17:56 +0300 Subject: *: Do not cast to the same type as the destination is Signed-off-by: Donatas Abraitis --- lib/link_state.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/link_state.c') diff --git a/lib/link_state.c b/lib/link_state.c index 105e3e28a9..25373bdb20 100644 --- a/lib/link_state.c +++ b/lib/link_state.c @@ -1739,7 +1739,7 @@ struct ls_message *ls_subnet2msg(struct ls_message *msg, struct ls_vertex *ls_msg2vertex(struct ls_ted *ted, struct ls_message *msg, bool delete) { - struct ls_node *node = (struct ls_node *)msg->data.node; + struct ls_node *node = msg->data.node; struct ls_vertex *vertex = NULL; switch (msg->event) { @@ -1779,7 +1779,7 @@ struct ls_vertex *ls_msg2vertex(struct ls_ted *ted, struct ls_message *msg, struct ls_edge *ls_msg2edge(struct ls_ted *ted, struct ls_message *msg, bool delete) { - struct ls_attributes *attr = (struct ls_attributes *)msg->data.attr; + struct ls_attributes *attr = msg->data.attr; struct ls_edge *edge = NULL; switch (msg->event) { @@ -1819,7 +1819,7 @@ struct ls_edge *ls_msg2edge(struct ls_ted *ted, struct ls_message *msg, struct ls_subnet *ls_msg2subnet(struct ls_ted *ted, struct ls_message *msg, bool delete) { - struct ls_prefix *pref = (struct ls_prefix *)msg->data.prefix; + struct ls_prefix *pref = msg->data.prefix; struct ls_subnet *subnet = NULL; switch (msg->event) { -- cgit v1.2.3