]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
net/mlx5: Remove return statement exist at the end of void function
authorWenpeng Liang <liangwenpeng@huawei.com>
Thu, 1 Apr 2021 13:07:42 +0000 (21:07 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 4 Jun 2025 12:36:51 +0000 (14:36 +0200)
[ Upstream commit 9dee115bc1478b6a51f664defbc5b091985a3fd3 ]

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>
Stable-dep-of: 90538d23278a ("net/mlx5: E-switch, Fix error handling for enabling roce")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/pci_irq.c
drivers/net/ethernet/mellanox/mlx5/core/rdma.c

index 6fd9749203944c47b19c27584beb2fcb5103af90..2f886bd7766402ae569c0ce8a8bbcf6733a1a89a 100644 (file)
@@ -88,7 +88,6 @@ static void irq_set_name(char *name, int vecidx)
 
        snprintf(name, MLX5_MAX_IRQ_NAME, "mlx5_comp%d",
                 vecidx - MLX5_IRQ_VEC_COMP_BASE);
-       return;
 }
 
 static int request_irqs(struct mlx5_core_dev *dev, int nvec)
index 945d90844f0cbbe88da23969cab4aa407b555c49..ab5afa6c5e0fd1050708342a135864aa736053bc 100644 (file)
@@ -183,5 +183,4 @@ del_roce_addr:
        mlx5_rdma_del_roce_addr(dev);
 disable_roce:
        mlx5_nic_vport_disable_roce(dev);
-       return;
 }