]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum_span: Reduce nesting in mlxsw_sp_span_entry_configure()
authorAmit Cohen <amitc@mellanox.com>
Fri, 24 Apr 2020 15:43:41 +0000 (18:43 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 24 Apr 2020 22:41:51 +0000 (15:41 -0700)
commitfe423c8a6156d3b05d5ca2beb3ad687fe86575c2
tree9309e4055326b6899645ead0e493f0a3ee10f20c
parent94ff1168a06654b1f088954b12df41cd19f9162c
mlxsw: spectrum_span: Reduce nesting in mlxsw_sp_span_entry_configure()

Use early return to avoid unnecessary nesting.

Signed-off-by: Amit Cohen <amitc@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Reviewed-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_span.c