]> 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)
commitdf1ae022af2cd79f7ad3c65d95369d4649feea52
tree5fcb514bc70522cb3e86a6fb9f93dd79639ab4b5
parent483126b3b2c649c0ef95f67ac75d3c99390d6cc8
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