net: netconsole: Correct mismatched return types
authorBreno Leitao <leitao@debian.org>
Thu, 8 Aug 2024 12:25:08 +0000 (05:25 -0700)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 13 Aug 2024 08:58:58 +0000 (10:58 +0200)
commite0a2b7e4a0f926948e7ade15cea5a43038dd790c
tree01f2cd55e60a04db93c1e2e3710f3c7db3f2fe62
parent1ef33652d22c69a2a7519d003cd6c79b8e514f44
net: netconsole: Correct mismatched return types

netconsole incorrectly mixes int and ssize_t types by using int for
return variables in functions that should return ssize_t.

This is fixed by updating the return variables to the appropriate
ssize_t type, ensuring consistency across the function definitions.

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