]> git.baikalelectronics.ru Git - kernel.git/commit
ipv4: nexthop: Remove unnecessary rtnl_dereference()
authorIdo Schimmel <idosch@nvidia.com>
Wed, 26 Aug 2020 16:48:53 +0000 (19:48 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 26 Aug 2020 23:00:51 +0000 (16:00 -0700)
commit2ff546a5ce87e8dabfb8b3a3a1fe8bef3a2dd713
treec08f3ad82d14496b108d58e9ae9fc4cf4743216a
parentbfea0ec2b3c1e22c940b7c9b547e5f35b4f10c9d
ipv4: nexthop: Remove unnecessary rtnl_dereference()

The pointer is not RCU protected, so remove the unnecessary
rtnl_dereference(). This suppresses the following warning:

net/ipv4/nexthop.c:1101:24: error: incompatible types in comparison expression (different address spaces):
net/ipv4/nexthop.c:1101:24:    struct rb_node [noderef] __rcu *
net/ipv4/nexthop.c:1101:24:    struct rb_node *

Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Reviewed-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/nexthop.c