lkml.org 
[lkml]   [2022]   [Apr]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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@redhat.com>

For net-next:

Reviewed-by: Ido Schimmel <idosch@nvidia.com>

\
 
 \ /
  Last update: 2022-04-03 15:11    [W:0.076 / U:0.072 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site