mpls_iptunnel: fix sparse warn: remove incorrect rcu_dereference
authorRoopa Prabhu <roopa@cumulusnetworks.com>
Wed, 22 Jul 2015 05:49:00 +0000 (22:49 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 22 Jul 2015 17:50:23 +0000 (10:50 -0700)
fix for:
net/mpls/mpls_iptunnel.c:73:19: sparse: incompatible types in comparison
expression (different address spaces)

remove incorrect rcu_dereference possibly left over from
earlier revisions of the code.

Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Roopa Prabhu <roopa@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/mpls/mpls_iptunnel.c

index eea096f..276f8c9 100644 (file)
@@ -70,7 +70,7 @@ int mpls_output(struct sock *sk, struct sk_buff *skb)
        skb_orphan(skb);
 
        /* Find the output device */
-       out_dev = rcu_dereference(dst->dev);
+       out_dev = dst->dev;
        if (!mpls_output_possible(out_dev) ||
            !lwtstate || skb_warn_if_lro(skb))
                goto drop;