]> git.baikalelectronics.ru Git - kernel.git/commit
skbuff: simplify __alloc_skb() a bit
authorAlexander Lobakin <alobakin@pm.me>
Sat, 13 Feb 2021 14:11:39 +0000 (14:11 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 13 Feb 2021 22:32:03 +0000 (14:32 -0800)
commitc7429635362950d761d2db0d837843351276cecc
tree5fcb514bc70522cb3e86a6fb9f93dd79639ab4b5
parent41b66ad4836270623afaa6885d7d611905a66759
skbuff: simplify __alloc_skb() a bit

Use unlikely() annotations for skbuff_head and data similarly to the
two other allocation functions and remove totally redundant goto.

Signed-off-by: Alexander Lobakin <alobakin@pm.me>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/skbuff.c