commit 9ec50c910b6b42c5256f4b6dc3d49152602bbeb6
parent a5337344710f7e5592074510038756934d7d77ce
Author: Denis Kenzior <denkenz@gmail.com>
Date: Thu, 17 Oct 2019 17:53:30 -0500
rtnlutil: Remove pointless conditional
gateway is checked to be !null above, so the conditional can be dropped.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/rtnlutil.c b/src/rtnlutil.c
@@ -554,7 +554,7 @@ static uint32_t rtnl_route_ipv6_change(struct l_netlink *rtnl,
bufsize = NLMSG_ALIGN(sizeof(struct rtmsg)) +
RTA_SPACE(sizeof(uint32_t)) +
(priority_offset ? RTA_SPACE(sizeof(uint32_t)) : 0) +
- (gateway ? RTA_SPACE(sizeof(struct in6_addr)) : 0);
+ RTA_SPACE(sizeof(struct in6_addr));
rtmmsg = l_malloc(bufsize);
memset(rtmmsg, 0, bufsize);