net/mlx5: remove redundant ret variable
Return value from mlx5dr_send_postsend_action() directly instead of taking this in another redundant variable. Signed-off-by: zhang songyi <zhang.songyi@zte.com.cn> Reviewed-by: Roi Dayan <roid@nvidia.com> Reviewed-by: Jiri Pirko <jiri@nvidia.com> Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
This commit is contained in:
parent
7bd1099c7e
commit
4238654ce1
@ -724,7 +724,6 @@ int mlx5dr_send_postsend_action(struct mlx5dr_domain *dmn,
|
||||
struct mlx5dr_action *action)
|
||||
{
|
||||
struct postsend_info send_info = {};
|
||||
int ret;
|
||||
|
||||
send_info.write.addr = (uintptr_t)action->rewrite->data;
|
||||
send_info.write.length = action->rewrite->num_of_actions *
|
||||
@ -734,9 +733,7 @@ int mlx5dr_send_postsend_action(struct mlx5dr_domain *dmn,
|
||||
mlx5dr_icm_pool_get_chunk_mr_addr(action->rewrite->chunk);
|
||||
send_info.rkey = mlx5dr_icm_pool_get_chunk_rkey(action->rewrite->chunk);
|
||||
|
||||
ret = dr_postsend_icm_data(dmn, &send_info);
|
||||
|
||||
return ret;
|
||||
return dr_postsend_icm_data(dmn, &send_info);
|
||||
}
|
||||
|
||||
static int dr_modify_qp_rst2init(struct mlx5_core_dev *mdev,
|
||||
|
Loading…
x
Reference in New Issue
Block a user