mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 22:37:45 -04: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 <[email protected]> Reviewed-by: Jiri Pirko <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
1 parent
2bafb216e1
commit
2c4950ea10
1 file changed
+1
-3
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user