]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/usnic: Clean up usnic_ib_alloc_pd()
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 18 Nov 2021 11:39:24 +0000 (14:39 +0300)
committerJason Gunthorpe <jgg@nvidia.com>
Fri, 19 Nov 2021 16:02:30 +0000 (12:02 -0400)
commitc2fcff65878aee605b7fe602cf42979cf35187a2
tree85c6a1f74cdec7f6b7ed96064008e44bc0363871
parente3041eb0a9359ebd63a4e699ff4de1bd954d81da
RDMA/usnic: Clean up usnic_ib_alloc_pd()

Remove the unnecessary "umem_pd" variable.  And usnic_uiom_alloc_pd()
never returns NULL so remove the NULL check.

Link: https://lore.kernel.org/r/20211118113924.GH1147@kili
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/usnic/usnic_ib_verbs.c