mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-29 14:05:19 +08:00
mlxsw: spectrum_flow: Convert a goto to a return
No clean-up is performed at the target label of this goto. Convert it to a direct return. Signed-off-by: Petr Machata <petrm@mellanox.com> Reviewed-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
2bafb216e1
commit
2c4950ea10
@ -219,8 +219,7 @@ static int mlxsw_sp_setup_tc_block_bind(struct mlxsw_sp_port *mlxsw_sp_port,
|
||||
mlxsw_sp_tc_block_release);
|
||||
if (IS_ERR(block_cb)) {
|
||||
mlxsw_sp_flow_block_destroy(flow_block);
|
||||
err = PTR_ERR(block_cb);
|
||||
goto err_cb_register;
|
||||
return PTR_ERR(block_cb);
|
||||
}
|
||||
register_block = true;
|
||||
} else {
|
||||
@ -247,7 +246,6 @@ static int mlxsw_sp_setup_tc_block_bind(struct mlxsw_sp_port *mlxsw_sp_port,
|
||||
err_block_bind:
|
||||
if (!flow_block_cb_decref(block_cb))
|
||||
flow_block_cb_free(block_cb);
|
||||
err_cb_register:
|
||||
return err;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user