]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/netlink: Simplify code of autoload modules
authorLeon Romanovsky <leonro@mellanox.com>
Mon, 1 Jan 2018 11:07:12 +0000 (13:07 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 2 Jan 2018 20:36:57 +0000 (13:36 -0700)
commit58e33ad491351b3ff7e758898ee23ff4ecbecad7
treea19953c74e8ebeedd60d00cd07f15747628f5b8d
parent0c2b3ec9923f8aa4387449bbb510c3c1fb7831ae
RDMA/netlink: Simplify code of autoload modules

The request_module() call is internally wrapped by CONFIG_MODULE,
so there is no need to check it in our RDMA code too.

Refactor to simplify the code.

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/netlink.c