No longer necessary.
Signed-off-by: David S. Miller <davem@davemloft.net>
{
struct dst_entry *dst = __sk_dst_check(sk, 0);
- if (dst && dst->ops->redirect)
+ if (dst)
dst->ops->redirect(dst, skb);
}
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);
}
{
struct dst_entry *dst = __sk_dst_check(sk, 0);
- if (dst && dst->ops->redirect)
+ if (dst)
dst->ops->redirect(dst, skb);
}
struct xfrm_dst *xdst = (struct xfrm_dst *)dst;
struct dst_entry *path = xdst->route;
- if (path->ops->redirect)
- path->ops->redirect(path, skb);
+ path->ops->redirect(path, skb);
}
static void xfrm4_dst_destroy(struct dst_entry *dst)
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));
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);
}
if (!t)
return;
dst = sctp_transport_dst_check(t);
- if (dst && dst->ops->redirect)
+ if (dst)
dst->ops->redirect(dst, skb);
}