diff options
| author | Tom Rix <[email protected]> | 2022-04-02 12:15:16 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2022-04-05 20:22:32 +0000 |
| commit | 6f2f36e5f932c58e370bff79aba7f05963ea1c2a (patch) | |
| tree | 00592f85a1c25652f74b12be718ab323e81197c6 /net/mctp/af_mctp.c | |
| parent | Linux 5.18-rc1 (diff) | |
| download | kernel-6f2f36e5f932c58e370bff79aba7f05963ea1c2a.tar.gz kernel-6f2f36e5f932c58e370bff79aba7f05963ea1c2a.zip | |
mlxsw: spectrum_router: simplify list unwinding
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 <[email protected]>
Reviewed-by: Ido Schimmel <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/mctp/af_mctp.c')
0 files changed, 0 insertions, 0 deletions
