]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: netconsole: introduce variable to track body length
authorBreno Leitao <leitao@debian.org>
Thu, 17 Oct 2024 09:50:20 +0000 (02:50 -0700)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 22 Oct 2024 13:44:24 +0000 (15:44 +0200)
commit606994ad2695ca3ffcab3494d7782c45d964c6f7
treef6a11a2a7f088213b8caffa032a41d84245711a7
parente1fa5d23b2c02f265f3111f4aa0a6b6b47da80a0
net: netconsole: introduce variable to track body length

This new variable tracks the total length of the data to be sent,
encompassing both the message body (msgbody) and userdata, which is
collectively called body.

By explicitly defining body_len, the code becomes clearer and easier to
reason about, simplifying offset calculations and improving overall
readability of the function.

Signed-off-by: Breno Leitao <leitao@debian.org>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/netconsole.c