From 4fc1c25082158bfa5c1370ac031f71dabfdb1fe8 Mon Sep 17 00:00:00 2001 From: Mingjie Shen Date: Wed, 21 Jun 2023 14:05:07 -0400 Subject: [PATCH] sys/net/rpl: fix missing assignment operator GNRC_RPL_COUNTER_INCREMENT has no external side effects. --- sys/net/gnrc/routing/rpl/gnrc_rpl_control_messages.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/net/gnrc/routing/rpl/gnrc_rpl_control_messages.c b/sys/net/gnrc/routing/rpl/gnrc_rpl_control_messages.c index 239e8985d0..26f409c7b1 100644 --- a/sys/net/gnrc/routing/rpl/gnrc_rpl_control_messages.c +++ b/sys/net/gnrc/routing/rpl/gnrc_rpl_control_messages.c @@ -1096,7 +1096,7 @@ void gnrc_rpl_send_DAO(gnrc_rpl_instance_t *inst, ipv6_addr_t *destination, uint gnrc_rpl_send(pkt, dodag->iface, NULL, destination, &dodag->dodag_id); - GNRC_RPL_COUNTER_INCREMENT(dodag->dao_seq); + dodag->dao_seq = GNRC_RPL_COUNTER_INCREMENT(dodag->dao_seq); } void gnrc_rpl_send_DAO_ACK(gnrc_rpl_instance_t *inst, ipv6_addr_t *destination, uint8_t seq)