]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
IB/mlx5: Remove dead code
authorRan Rozenstein <ranro@mellanox.com>
Sun, 20 Oct 2019 06:44:54 +0000 (09:44 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 22 Oct 2019 19:37:48 +0000 (16:37 -0300)
mlx5_ib_dc_atomic_is_supported function is not used anywhere. Remove the
dead code.

Fixes: a60109dc9a95 ("IB/mlx5: Add support for extended atomic operations")
Link: https://lore.kernel.org/r/20191020064454.8551-1-leon@kernel.org
Signed-off-by: Ran Rozenstein <ranro@mellanox.com>
Reviewed-by: Maor Gottlieb <maorg@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/main.c
drivers/infiniband/hw/mlx5/mlx5_ib.h

index 39d54e285ae9c5079fc3e5f8f2fa2270c89c78dc..20fabb368f61de36946cd4aeb8c2d8d3d59df145 100644 (file)
@@ -694,21 +694,6 @@ static void get_atomic_caps_qp(struct mlx5_ib_dev *dev,
        get_atomic_caps(dev, atomic_size_qp, props);
 }
 
-static void get_atomic_caps_dc(struct mlx5_ib_dev *dev,
-                              struct ib_device_attr *props)
-{
-       u8 atomic_size_qp = MLX5_CAP_ATOMIC(dev->mdev, atomic_size_dc);
-
-       get_atomic_caps(dev, atomic_size_qp, props);
-}
-
-bool mlx5_ib_dc_atomic_is_supported(struct mlx5_ib_dev *dev)
-{
-       struct ib_device_attr props = {};
-
-       get_atomic_caps_dc(dev, &props);
-       return (props.atomic_cap == IB_ATOMIC_HCA) ? true : false;
-}
 static int mlx5_query_system_image_guid(struct ib_device *ibdev,
                                        __be64 *sys_image_guid)
 {
index e9bdb48cf1d3f12c7fe6895cdbad800d08ce76e9..64f56926bf6beb76fc1e317f1c278121b0029986 100644 (file)
@@ -1241,7 +1241,6 @@ struct ib_rwq_ind_table *mlx5_ib_create_rwq_ind_table(struct ib_device *device,
                                                      struct ib_rwq_ind_table_init_attr *init_attr,
                                                      struct ib_udata *udata);
 int mlx5_ib_destroy_rwq_ind_table(struct ib_rwq_ind_table *wq_ind_table);
-bool mlx5_ib_dc_atomic_is_supported(struct mlx5_ib_dev *dev);
 struct ib_dm *mlx5_ib_alloc_dm(struct ib_device *ibdev,
                               struct ib_ucontext *context,
                               struct ib_dm_alloc_attr *attr,