Skip to content

Commit 24fd6d6

Browse files
Maor Gottliebjgunthorpe
authored andcommitted
RDMA/core: Don't call fill_res_entry for PD
None of the drivers implement it, remove it. Link: https://lore.kernel.org/r/20200623113043.1228482-4-leon@kernel.org Signed-off-by: Maor Gottlieb <maorg@mellanox.com> Signed-off-by: Leon Romanovsky <leonro@mellanox.com> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
1 parent 608ca55 commit 24fd6d6

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

drivers/infiniband/core/nldev.c

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -653,7 +653,6 @@ static int fill_res_pd_entry(struct sk_buff *msg, bool has_cap_net_admin,
653653
struct rdma_restrack_entry *res, uint32_t port)
654654
{
655655
struct ib_pd *pd = container_of(res, struct ib_pd, res);
656-
struct ib_device *dev = pd->device;
657656

658657
if (has_cap_net_admin) {
659658
if (nla_put_u32(msg, RDMA_NLDEV_ATTR_RES_LOCAL_DMA_LKEY,
@@ -676,13 +675,7 @@ static int fill_res_pd_entry(struct sk_buff *msg, bool has_cap_net_admin,
676675
pd->uobject->context->res.id))
677676
goto err;
678677

679-
if (fill_res_name_pid(msg, res))
680-
goto err;
681-
682-
if (fill_res_entry(dev, msg, res))
683-
goto err;
684-
685-
return 0;
678+
return fill_res_name_pid(msg, res);
686679

687680
err: return -EMSGSIZE;
688681
}

0 commit comments

Comments
 (0)