IB/mlx5: Remove unnecessary return statement
authorErez Alfasi <ereza@mellanox.com>
Wed, 2 Oct 2019 12:25:15 +0000 (15:25 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Fri, 4 Oct 2019 18:38:16 +0000 (15:38 -0300)
There is no reason to call return at the end of function which returns
void. Remove this unnecessary statement.

Link: https://lore.kernel.org/r/20191002122517.17721-3-leon@kernel.org
Signed-off-by: Erez Alfasi <ereza@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Reviewed-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/mlx5/odp.c

index 2e9b430..95cf024 100644 (file)
@@ -359,8 +359,6 @@ void mlx5_ib_internal_fill_odp_caps(struct mlx5_ib_dev *dev)
            MLX5_CAP_GEN(dev->mdev, umr_extended_translation_offset) &&
            !MLX5_CAP_GEN(dev->mdev, umr_indirect_mkey_disabled))
                caps->general_caps |= IB_ODP_SUPPORT_IMPLICIT;
-
-       return;
 }
 
 static void mlx5_ib_page_fault_resume(struct mlx5_ib_dev *dev,