[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CADvbK_cp=heq2sg0J2hEa3p4soBFmjdqvY2otSLtCkF0aF2FKQ@mail.gmail.com>
Date: Mon, 3 Nov 2025 14:18:48 -0500
From: Xin Long <lucien.xin@...il.com>
To: Huiwen He <hehuiwen@...inos.cn>
Cc: Marcelo Ricardo Leitner <marcelo.leitner@...il.com>, "David S. Miller" <davem@...emloft.net>,
Eric Dumazet <edumazet@...gle.com>, Jakub Kicinski <kuba@...nel.org>, Paolo Abeni <pabeni@...hat.com>,
Simon Horman <horms@...nel.org>, "open list:SCTP PROTOCOL" <linux-sctp@...r.kernel.org>,
"open list:NETWORKING [GENERAL]" <netdev@...r.kernel.org>, open list <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH v2] sctp: make sctp_transport_init() void
On Sun, Nov 2, 2025 at 9:38 PM Huiwen He <hehuiwen@...inos.cn> 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@...inos.cn>
> ---
> 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@kylinos.cn
>
Acked-by: Xin Long <lucien.xin@...il.com>
Powered by blists - more mailing lists