3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-10-05 19:08:52 +02:00

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

View File

@ -554,7 +554,7 @@ static uint32_t rtnl_route_ipv6_change(struct l_netlink *rtnl,
bufsize = NLMSG_ALIGN(sizeof(struct rtmsg)) + bufsize = NLMSG_ALIGN(sizeof(struct rtmsg)) +
RTA_SPACE(sizeof(uint32_t)) + RTA_SPACE(sizeof(uint32_t)) +
(priority_offset ? RTA_SPACE(sizeof(uint32_t)) : 0) + (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); rtmmsg = l_malloc(bufsize);
memset(rtmmsg, 0, bufsize); memset(rtmmsg, 0, bufsize);