From: Roopa Prabhu Date: Wed, 22 Jul 2015 05:49:00 +0000 (-0700) Subject: mpls_iptunnel: fix sparse warn: remove incorrect rcu_dereference X-Git-Tag: next-20150824~68^2~178 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=de18547d48c0e735309d6874852f048352e08a88;p=uclinux-h8%2Flinux.git mpls_iptunnel: fix sparse warn: remove incorrect rcu_dereference 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 Signed-off-by: Roopa Prabhu Signed-off-by: David S. Miller --- diff --git a/net/mpls/mpls_iptunnel.c b/net/mpls/mpls_iptunnel.c index eea096f21ba5..276f8c992218 100644 --- a/net/mpls/mpls_iptunnel.c +++ b/net/mpls/mpls_iptunnel.c @@ -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;