Thread (21 messages) 21 messages, 2 authors, 2024-09-06

Re: [PATCH net-next 5/9] net: netconsole: introduce variable to track body length

From: Simon Horman <horms@kernel.org>
Date: 2024-09-04 11:04:44
Also in: lkml

On Tue, Sep 03, 2024 at 07:07:48AM -0700, Breno Leitao wrote:
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>
Thanks,

I agree that this improves the clarify of the code.

Reviewed-by: Simon Horman <horms@kernel.org>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help