summaryrefslogtreecommitdiffstats
path: root/net/can/isotp.c
diff options
context:
space:
mode:
authorTom Rix <trix@redhat.com>2022-04-02 14:15:16 +0200
committerJakub Kicinski <kuba@kernel.org>2022-04-05 22:22:32 +0200
commit6f2f36e5f932c58e370bff79aba7f05963ea1c2a (patch)
tree00592f85a1c25652f74b12be718ab323e81197c6 /net/can/isotp.c
parentLinux 5.18-rc1 (diff)
downloadlinux-6f2f36e5f932c58e370bff79aba7f05963ea1c2a.tar.xz
linux-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 <trix@redhat.com> Reviewed-by: Ido Schimmel <idosch@nvidia.com> Link: https://lore.kernel.org/r/20220402121516.2750284-1-trix@redhat.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/can/isotp.c')
0 files changed, 0 insertions, 0 deletions