]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/core: Replace open-coded variant of put_device
authorLeon Romanovsky <leonro@mellanox.com>
Mon, 1 Jan 2018 11:07:13 +0000 (13:07 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 2 Jan 2018 20:36:57 +0000 (13:36 -0700)
commit4cb7e39a3fe458402d01337d6f02d5f6dc0131d3
tree059c1aa76bd6f7ed63ccaf4bde810443ba1a989d
parent58e33ad491351b3ff7e758898ee23ff4ecbecad7
RDMA/core: Replace open-coded variant of put_device

There is an existing function to decrease reference counter
of the device, let's use it.

Reviewed-by: Mark Bloch <markb@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/device.c