mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-22 21:22:37 +01:00
rtnlutil: Remove pointless conditional
gateway is checked to be !null above, so the conditional can be dropped.
This commit is contained in:
parent
a533734471
commit
9ec50c910b
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user