mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
net: Remove checks for dst_ops->redirect being NULL.
No longer necessary. Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
b587ee3ba2
commit
1ed5c48f23
7 changed files with 8 additions and 11 deletions
|
|
@ -199,7 +199,7 @@ static void dccp_do_redirect(struct sk_buff *skb, struct sock *sk)
|
|||
{
|
||||
struct dst_entry *dst = __sk_dst_check(sk, 0);
|
||||
|
||||
if (dst && dst->ops->redirect)
|
||||
if (dst)
|
||||
dst->ops->redirect(dst, skb);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -133,7 +133,7 @@ static void dccp_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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue