diff options
author | Nicolas Dichtel <nicolas.dichtel@6wind.com> | 2019-06-24 17:01:08 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-06-26 23:26:08 +0300 |
commit | 9b1c1ef13b35fa35051b635ca9fbda39fe6bbc70 (patch) | |
tree | c0c49d78a531b98f9d9c7e593591cfb46e87a493 /net/ipv6 | |
parent | 22e72b5e049b95789b34a4cef316c791e7c2fed5 (diff) | |
download | linux-9b1c1ef13b35fa35051b635ca9fbda39fe6bbc70.tar.xz |
ipv6: constify rt6_nexthop()
There is no functional change in this patch, it only prepares the next one.
rt6_nexthop() will be used by ip6_dst_lookup_neigh(), which uses const
variables.
Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Reported-by: kbuild test robot <lkp@intel.com>
Acked-by: Nick Desaulniers <ndesaulniers@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6')
-rw-r--r-- | net/ipv6/ip6_output.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/ip6_output.c b/net/ipv6/ip6_output.c index 834475717110..21efcd02f337 100644 --- a/net/ipv6/ip6_output.c +++ b/net/ipv6/ip6_output.c @@ -59,8 +59,8 @@ static int ip6_finish_output2(struct net *net, struct sock *sk, struct sk_buff * { struct dst_entry *dst = skb_dst(skb); struct net_device *dev = dst->dev; + const struct in6_addr *nexthop; struct neighbour *neigh; - struct in6_addr *nexthop; int ret; if (ipv6_addr_is_multicast(&ipv6_hdr(skb)->daddr)) { |