OSDN Git Service

IB/uverbs: Add a uobj_perform_destroy helper
authorJason Gunthorpe <jgg@mellanox.com>
Wed, 4 Jul 2018 08:32:06 +0000 (11:32 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 9 Jul 2018 17:26:17 +0000 (11:26 -0600)
commitc33e73af2183fb9fcd993e37abcdecc058b22d91
treef85591d06f6362c845a38f8473be7916ee238822
parent422e3d37ed7ea8b421208a44913c420055334976
IB/uverbs: Add a uobj_perform_destroy helper

This consolidates a bunch of repeated code patterns into a helper.

Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
drivers/infiniband/core/rdma_core.c
drivers/infiniband/core/uverbs_cmd.c
include/rdma/uverbs_std_types.h