RDMA/core: Remove unnecessary statements
authorYajun Deng <yajun.deng@linux.dev>
Wed, 23 Feb 2022 07:49:01 +0000 (15:49 +0800)
committerJason Gunthorpe <jgg@nvidia.com>
Mon, 28 Feb 2022 17:57:24 +0000 (13:57 -0400)
commita80501b89152adb29adc7ab943d75c7345f9a3fb
tree4930a0b642acebcd3e483d1275efc8990f47284b
parent17850f2b0b4b806e47cc44df94186bfc2cdd490b
RDMA/core: Remove unnecessary statements

The rdma_zalloc_drv_obj() in __ib_alloc_pd() would zero pd, it unnecessary
add NULL to the object in struct pd.

The uverbs_free_pd() already return busy if pd->usecnt is true, there is
no need to add a warning.

Link: https://lore.kernel.org/r/20220223074901.201506-1-yajun.deng@linux.dev
Signed-off-by: Yajun Deng <yajun.deng@linux.dev>
Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/core/verbs.c