From 9ec50c910b6b42c5256f4b6dc3d49152602bbeb6 Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Thu, 17 Oct 2019 17:53:30 -0500 Subject: [PATCH] rtnlutil: Remove pointless conditional gateway is checked to be !null above, so the conditional can be dropped. --- src/rtnlutil.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rtnlutil.c b/src/rtnlutil.c index f90e9dcf..833f7103 100644 --- 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);