net: route: Remove redundant cast when calling net_ipv6_is_prefix
Instead of casting struct in6_addr, sin6_addr member is now used directly, like in every other instance of calling net_ipv6_is_prefix(). Signed-off-by: Christian Taedcke <christian.taedcke@lemonbeat.com>
This commit is contained in:
parent
3dba8cc850
commit
26fb02e43f
|
@ -278,8 +278,8 @@ struct net_route_entry *net_route_lookup(struct net_if *iface,
|
|||
route = net_route_data(nbr);
|
||||
|
||||
if (route->prefix_len >= longest_match &&
|
||||
net_ipv6_is_prefix((uint8_t *)dst,
|
||||
(uint8_t *)&route->addr,
|
||||
net_ipv6_is_prefix(dst->s6_addr,
|
||||
route->addr.s6_addr,
|
||||
route->prefix_len)) {
|
||||
found = route;
|
||||
longest_match = route->prefix_len;
|
||||
|
|
Loading…
Reference in a new issue