[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Ykmcu5y4Tx8pqhtQ@shredder>
Date: Sun, 3 Apr 2022 16:10:19 +0300
From: Ido Schimmel <idosch@...sch.org>
To: Tom Rix <trix@...hat.com>
Cc: idosch@...dia.com, petrm@...dia.com, davem@...emloft.net,
kuba@...nel.org, pabeni@...hat.com, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] mlxsw: spectrum_router: simplify list unwinding
On Sat, Apr 02, 2022 at 08:15:16AM -0400, Tom Rix wrote:
> The setting of i here
> err_nexthop6_group_get:
> i = nrt6;
> Is redundant, i is already nrt6. So remove
> this statement.
>
> The for loop for the unwinding
> err_rt6_create:
> for (i--; i >= 0; i--) {
> Is equivelent to
> for (; i > 0; i--) {
>
> Two consecutive labels can be reduced to one.
>
> Signed-off-by: Tom Rix <trix@...hat.com>
For net-next:
Reviewed-by: Ido Schimmel <idosch@...dia.com>
Powered by blists - more mailing lists