rtnlutil: Remove pointless conditional

gateway is checked to be !null above, so the conditional can be dropped.
This commit is contained in:
Denis Kenzior 2019-10-17 17:53:30 -05:00
parent a533734471
commit 9ec50c910b
1 changed files with 1 additions and 1 deletions

View File

@ -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);