]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: qdisc_pkt_len_segs_init() cleanup
authorEric Dumazet <edumazet@google.com>
Fri, 3 Apr 2026 22:15:39 +0000 (22:15 +0000)
committerJakub Kicinski <kuba@kernel.org>
Wed, 8 Apr 2026 02:02:13 +0000 (19:02 -0700)
commit30e02ec3b4b6bd429a4824f125eb843a291dcccf
treeea5b92a2cbea24605d76d075877a33c7f248219a
parente65d8b6f3092398efd7c74e722cb7a516d9a0d6d
net: qdisc_pkt_len_segs_init() cleanup

Reduce indentation level by returning early if the transport header
was not set.

Add an unlikely() clause as this is not the common case.

No functional change.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Joe Damato <joe@dama.to>
Link: https://patch.msgid.link/20260403221540.3297753-2-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/core/dev.c