nvme-fabrics: don't check for non-NULL module in nvmf_register_transport
authorChristoph Hellwig <[email protected]>
Thu, 22 Feb 2018 15:24:08 +0000 (07:24 -0800)
committerKeith Busch <[email protected]>
Thu, 22 Feb 2018 08:45:30 +0000 (01:45 -0700)
commit5a1e59533380a3fd04593e4ab2d4633ebf7745c1
treeab461e66bee5611d0345314cbee27aeee0d7f8a4
parentaf27d9403f5b80685b79c88425086edccecaf711
nvme-fabrics: don't check for non-NULL module in nvmf_register_transport

THIS_MODULE evaluates to NULL when used from code built into the kernel,
thus breaking built-in transport modules.  Remove the bogus check.

Fixes: 0de5cd36 ("nvme-fabrics: protect against module unload during create_ctrl")
Signed-off-by: Christoph Hellwig <[email protected]>
Reviewed-by: Sagi Grimberg <[email protected]>
Reviewed-by: Johannes Thumshirn <[email protected]>
Signed-off-by: Keith Busch <[email protected]>
drivers/nvme/host/fabrics.c