[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <0e6320d8-937f-41f2-8302-cf573aa2a273@huawei.com>
Date: Sat, 24 Aug 2024 10:16:35 +0800
From: Li Zetao <lizetao1@...wei.com>
To: Petr Machata <petrm@...dia.com>
CC: <davem@...emloft.net>, <edumazet@...gle.com>, <kuba@...nel.org>,
<pabeni@...hat.com>, <dsahern@...nel.org>, <idosch@...dia.com>,
<amcohen@...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 00/10] net: Delete some redundant judgments
Hi,
在 2024/8/23 21:16, Petr Machata 写道:
>
> Li Zetao <lizetao1@...wei.com> writes:
>
>> This patchset aims to remove some unnecessary judgments and make the
>> code more concise. In some network modules, rtnl_set_sk_err is used to
>> record error information, but the err is repeatedly judged to be less
>> than 0 on the error path. Deleted these redundant judgments.
>
> What you call "judgments" would be usually called "conditionals" or
> "conditional statements", "judged less than zero" would be probably
> "compared to zero". I think the commit messages are reasonably clear
> despite this, so I'd leave it be unless others push back. But it's worth
> keeping in mind for future contributions.
Thanks you, I will take your advice.
Thanks,
Li Zetao.
Powered by blists - more mailing lists