[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <87seuvjs98.fsf@nvidia.com>
Date: Fri, 23 Aug 2024 15:14:23 +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 04/10] rtnetlink: 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