[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <877cc7js6b.fsf@nvidia.com>
Date: Fri, 23 Aug 2024 15:16:09 +0200
From: Petr Machata <petrm@...dia.com>
To: Li Zetao <lizetao1@...wei.com>
CC: <davem@...emloft.net>, <edumazet@...gle.com>, <kuba@...nel.org>,
<pabeni@...hat.com>, <dsahern@...nel.org>, <idosch@...dia.com>,
<amcohen@...dia.com>, <petrm@...dia.com>, <gnault@...hat.com>,
<b.galvani@...il.com>, <alce@...ranque.net>, <shaozhengchao@...wei.com>,
<horms@...nel.org>, <j.granados@...sung.com>, <linux@...ssschuh.net>,
<judyhsiao@...omium.org>, <jiri@...nulli.us>, <netdev@...r.kernel.org>
Subject: Re: [PATCH net-next 09/10] net/ipv6: delete redundant judgment
statements
Li Zetao <lizetao1@...wei.com> writes:
> The initial value of err is -ENOBUFS, and err is guaranteed to be
> less than 0 before all goto errout. Therefore, on the error path
> of errout, there is no need to repeatedly judge that err is less than 0,
> and delete redundant judgments to make the code more concise.
>
> Signed-off-by: Li Zetao <lizetao1@...wei.com>
Reviewed-by: Petr Machata <petrm@...dia.com>
Powered by blists - more mailing lists