IB/uverbs: Tidy uverbs_uobject_add
authorJason Gunthorpe <jgg@mellanox.com>
Tue, 13 Feb 2018 10:18:39 +0000 (12:18 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Wed, 28 Feb 2018 19:55:03 +0000 (12:55 -0700)
commit8efe991e8bd07c415ffe1174853d81c14812a42b
treec97d9bbc49a93f0de699026b729ec58255dc9852
parent1d1ab1ae69701d813993af40cf3ee39781ec4d6f
IB/uverbs: Tidy uverbs_uobject_add

Maintaining the uobjects list is mandatory, hoist it into the common
rdma_alloc_commit_uobject() function and inline it as there is now
only one caller.

Signed-off-by: Leon Romanovsky <leon@kernel.org>
Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/rdma_core.c