[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20210510113124.414f3924@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com>
Date: Mon, 10 May 2021 11:31:24 -0700
From: Jakub Kicinski <kuba@...nel.org>
To: Zhu Yanjun <zyjzyj2000@...il.com>
Cc: Zhen Lei <thunder.leizhen@...wei.com>,
Rain River <rain.1986.08.12@...il.com>,
"David S . Miller" <davem@...emloft.net>,
netdev <netdev@...r.kernel.org>
Subject: Re: [PATCH 1/1] forcedeth: Delete a redundant condition branch
On Mon, 10 May 2021 22:19:34 +0800 Zhu Yanjun wrote:
> On Mon, May 10, 2021 at 9:57 PM Zhen Lei <thunder.leizhen@...wei.com> wrote:
> >
> > The statement of the last "if (adv_lpa & LPA_10HALF)" branch is the same
> > as the "else" branch. Delete it to simplify code.
> >
> > No functional change.
>
> Thanks.
> Missing Fixes?
Fixes tag is supposed to be used for functional fixes.
This patch (and the stmmac one) removes a branch based on the fact that
it's the same as the default / catch all case. It's has a net negative
effect on the reability of the code since now not all cases are
explicitly enumerated. But it's at least the 3rd time we got that
stmmac patch so perhaps not worth fighting the bots...
Powered by blists - more mailing lists