]> 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)
commiteb03c249d86d401c5caa7357850df41f63d05caa
tree5fcb514bc70522cb3e86a6fb9f93dd79639ab4b5
parent2c145b4a6af4c8577ac068509774d1851fe130c1
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