]> www.infradead.org Git - users/dwmw2/linux.git/commit
net: netconsole: extract release appending into separate function
authorBreno Leitao <leitao@debian.org>
Thu, 17 Oct 2024 09:50:22 +0000 (02:50 -0700)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 22 Oct 2024 13:44:25 +0000 (15:44 +0200)
commit684dce1f9984f749f109407fb24e4d435b6de829
treeb9537932674abd2a6045bb1088cf3146206cd091
parentb8dee8ed13b83b701b715dac993582d57c76e31a
net: netconsole: extract release appending into separate function

Refactor the code by extracting the logic for appending the
release into the buffer into a separate function.

The goal is to reduce the size of send_msg_fragmented() and improve
code readability.

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