Commit 5e1abdc3 authored by Yangtao Li's avatar Yangtao Li Committed by David S. Miller

net: skbuff.h: remove unnecessary unlikely()

WARN_ON() already contains an unlikely(), so it's not necessary to use
unlikely.
Signed-off-by: default avatarYangtao Li <tiny.windzz@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent a8d62195
......@@ -2508,10 +2508,8 @@ int ___pskb_trim(struct sk_buff *skb, unsigned int len);
static inline void __skb_set_length(struct sk_buff *skb, unsigned int len)
{
if (unlikely(skb_is_nonlinear(skb))) {
WARN_ON(1);
if (WARN_ON(skb_is_nonlinear(skb)))
return;
}
skb->len = len;
skb_set_tail_pointer(skb, len);
}
......
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