]> Gentwo Git Trees - linux/.git/commit
tipc: adjust tipc_nodeid2string() to return string length
authorDmitry Antipov <dmantipov@yandex.ru>
Fri, 26 Sep 2025 07:41:13 +0000 (10:41 +0300)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 30 Sep 2025 09:22:39 +0000 (11:22 +0200)
commit2ade91705b596b7b6b7de84c0ca59eced7acd1f6
tree05c1a7aecc7a74910087ef09b9a30fa2258d8acd
parent38b04ed7072e54086102eae2d05d03ffcdb4b695
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: Dmitry Antipov <dmantipov@yandex.ru>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20250926074113.914399-1-dmantipov@yandex.ru
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
net/tipc/addr.c
net/tipc/addr.h
net/tipc/link.c