Commit 26f8113c authored by Enrico Weigelt's avatar Enrico Weigelt Committed by David S. Miller

net: ipv6: drop unneeded likely() call around IS_ERR()

IS_ERR() already calls unlikely(), so this extra unlikely() call
around IS_ERR() is not needed.
Signed-off-by: default avatarEnrico Weigelt <info@metux.net>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 88e235b8
...@@ -178,7 +178,7 @@ struct sock *inet6_lookup_listener(struct net *net, ...@@ -178,7 +178,7 @@ struct sock *inet6_lookup_listener(struct net *net,
saddr, sport, &in6addr_any, hnum, saddr, sport, &in6addr_any, hnum,
dif, sdif); dif, sdif);
done: done:
if (unlikely(IS_ERR(result))) if (IS_ERR(result))
return NULL; return NULL;
return result; return result;
} }
......
...@@ -219,7 +219,7 @@ struct sock *__udp6_lib_lookup(struct net *net, ...@@ -219,7 +219,7 @@ struct sock *__udp6_lib_lookup(struct net *net,
exact_dif, hslot2, exact_dif, hslot2,
skb); skb);
} }
if (unlikely(IS_ERR(result))) if (IS_ERR(result))
return NULL; return NULL;
return result; return result;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment