]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
mpls: Return early in mpls_label_ok().
authorKuniyuki Iwashima <kuniyu@google.com>
Wed, 29 Oct 2025 17:32:53 +0000 (17:32 +0000)
committerJakub Kicinski <kuba@kernel.org>
Tue, 4 Nov 2025 01:40:44 +0000 (17:40 -0800)
commit2214ca1ff6df1c1faab4fb95f0296b6d9bf6e1ee
treeea8680f552ecac4745387f624a5b13454d06cf82
parent209ff7af79bf495e6c3d300bf3dea6aeea973bc7
mpls: Return early in mpls_label_ok().

When mpls_label_ok() returns false, it does not need to update *index.

Let's remove is_ok and return early.

Signed-off-by: Kuniyuki Iwashima <kuniyu@google.com>
Reviewed-by: Guillaume Nault <gnault@redhat.com>
Link: https://patch.msgid.link/20251029173344.2934622-2-kuniyu@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/mpls/af_mpls.c