Re: [PATCH v2] sctp: make sctp_transport_init() void
From: Xin Long
Date: Mon Nov 03 2025 - 14:20:40 EST
On Sun, Nov 2, 2025 at 9:38 PM Huiwen He <hehuiwen@xxxxxxxxxx> wrote:
>
> 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@xxxxxxxxxx>
> ---
> Changes in v2:
> - Remove the 'fail' label and its path as suggested by Xin Long.
> - Link to v1: https://lore.kernel.org/all/20251101163656.585550-1-hehuiwen@xxxxxxxxxx
>
Acked-by: Xin Long <lucien.xin@xxxxxxxxx>