Commit 2ade9170 authored by Dmitry Antipov's avatar Dmitry Antipov Committed by Paolo Abeni
Browse files

tipc: adjust tipc_nodeid2string() to return string length



Since the value returned by 'tipc_nodeid2string()' is not used, the
function may be adjusted to return the length of the result, which
is helpful to drop a few calls to 'strlen()' in 'tipc_link_create()'
and 'tipc_link_bc_create()'. Compile tested only.

Signed-off-by: default avatarDmitry Antipov <dmantipov@yandex.ru>
Reviewed-by: default avatarSimon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20250926074113.914399-1-dmantipov@yandex.ru


Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
parent 38b04ed7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment