net/mlx5: Remove return statement exist at the end of void function
void function return statements are not generally useful. Signed-off-by: Wenpeng Liang <liangwenpeng@huawei.com> Signed-off-by: Weihang Li <liweihang@huawei.com> Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
This commit is contained in:
parent
02f47c04c3
commit
9dee115bc1
|
@ -603,8 +603,6 @@ void mlx5_lag_add(struct mlx5_core_dev *dev, struct net_device *netdev)
|
||||||
if (err)
|
if (err)
|
||||||
mlx5_core_err(dev, "Failed to init multipath lag err=%d\n",
|
mlx5_core_err(dev, "Failed to init multipath lag err=%d\n",
|
||||||
err);
|
err);
|
||||||
|
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Must be called with intf_mutex held */
|
/* Must be called with intf_mutex held */
|
||||||
|
|
|
@ -167,7 +167,6 @@ static void irq_set_name(char *name, int vecidx)
|
||||||
|
|
||||||
snprintf(name, MLX5_MAX_IRQ_NAME, "mlx5_comp%d",
|
snprintf(name, MLX5_MAX_IRQ_NAME, "mlx5_comp%d",
|
||||||
vecidx - MLX5_IRQ_VEC_COMP_BASE);
|
vecidx - MLX5_IRQ_VEC_COMP_BASE);
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static int request_irqs(struct mlx5_core_dev *dev, int nvec)
|
static int request_irqs(struct mlx5_core_dev *dev, int nvec)
|
||||||
|
|
|
@ -180,5 +180,4 @@ del_roce_addr:
|
||||||
mlx5_rdma_del_roce_addr(dev);
|
mlx5_rdma_del_roce_addr(dev);
|
||||||
disable_roce:
|
disable_roce:
|
||||||
mlx5_nic_vport_disable_roce(dev);
|
mlx5_nic_vport_disable_roce(dev);
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue