net: Remove checks for dst_ops->redirect being NULL.
No longer necessary. Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
@@ -611,10 +611,8 @@ ip4ip6_err(struct sk_buff *skb, struct inet6_skb_parm *opt,
|
||||
|
||||
skb_dst(skb2)->ops->update_pmtu(skb_dst(skb2), rel_info);
|
||||
}
|
||||
if (rel_type == ICMP_REDIRECT) {
|
||||
if (skb_dst(skb2)->ops->redirect)
|
||||
skb_dst(skb2)->ops->redirect(skb_dst(skb2), skb2);
|
||||
}
|
||||
if (rel_type == ICMP_REDIRECT)
|
||||
skb_dst(skb2)->ops->redirect(skb_dst(skb2), skb2);
|
||||
|
||||
icmp_send(skb2, rel_type, rel_code, htonl(rel_info));
|
||||
|
||||
|
@@ -366,7 +366,7 @@ static void tcp_v6_err(struct sk_buff *skb, struct inet6_skb_parm *opt,
|
||||
if (type == NDISC_REDIRECT) {
|
||||
struct dst_entry *dst = __sk_dst_check(sk, np->dst_cookie);
|
||||
|
||||
if (dst && dst->ops->redirect)
|
||||
if (dst)
|
||||
dst->ops->redirect(dst,skb);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user