]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
sctp: make sctp_transport_init() void
authorHuiwen He <hehuiwen@kylinos.cn>
Mon, 3 Nov 2025 02:36:19 +0000 (10:36 +0800)
committerJakub Kicinski <kuba@kernel.org>
Tue, 4 Nov 2025 01:23:53 +0000 (17:23 -0800)
commit59b20b15c112867f28a12a24aa25f14549db02e4
tree062fd181fa2f030ae2c1c1cdf07ddb9e50b00c9e
parent5556f23478e6eb5d6a0321d4135e2c37a3c78a1e
sctp: make sctp_transport_init() void

sctp_transport_init() is static and never returns NULL. It is only
called by sctp_transport_new(), so change it to void and remove the
redundant return value check.

Signed-off-by: Huiwen He <hehuiwen@kylinos.cn>
Acked-by: Xin Long <lucien.xin@gmail.com>
Link: https://patch.msgid.link/20251103023619.1025622-1-hehuiwen@kylinos.cn
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/sctp/transport.c