diff options
author | Nicolas Dichtel <nicolas.dichtel@6wind.com> | 2019-06-24 16:01:08 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-06-26 22:26:08 +0200 |
commit | 9b1c1ef13b35fa35051b635ca9fbda39fe6bbc70 (patch) | |
tree | c0c49d78a531b98f9d9c7e593591cfb46e87a493 /net/bluetooth | |
parent | net: dsa: microchip: Use gpiod_set_value_cansleep() (diff) | |
download | linux-9b1c1ef13b35fa35051b635ca9fbda39fe6bbc70.tar.xz linux-9b1c1ef13b35fa35051b635ca9fbda39fe6bbc70.zip |
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/bluetooth')
-rw-r--r-- | net/bluetooth/6lowpan.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/bluetooth/6lowpan.c b/net/bluetooth/6lowpan.c index 19d27bee285e..1555b0c6f7ec 100644 --- a/net/bluetooth/6lowpan.c +++ b/net/bluetooth/6lowpan.c @@ -160,10 +160,10 @@ static inline struct lowpan_peer *peer_lookup_dst(struct lowpan_btle_dev *dev, struct in6_addr *daddr, struct sk_buff *skb) { - struct lowpan_peer *peer; - struct in6_addr *nexthop; struct rt6_info *rt = (struct rt6_info *)skb_dst(skb); int count = atomic_read(&dev->peer_count); + const struct in6_addr *nexthop; + struct lowpan_peer *peer; BT_DBG("peers %d addr %pI6c rt %p", count, daddr, rt); |