]> git.baikalelectronics.ru Git - kernel.git/commit
nvme: remove ns->disk checks
authorChristoph Hellwig <hch@lst.de>
Wed, 8 Jul 2020 14:18:27 +0000 (16:18 +0200)
committerChristoph Hellwig <hch@lst.de>
Wed, 8 Jul 2020 17:15:20 +0000 (19:15 +0200)
commitadc4445782a7a39c566807385ea5a02aa15e8a74
treef3b42c248fb23b2a420ad86967750ae701dae31c
parent372b9dea0e11e3f6822c964241078db20577fd50
nvme: remove ns->disk checks

By the time a namespace is added to ctrl->namespaces list and thus
can be looked up ns->disk has been assigned, and it it never cleared.

Remove all the checks for ns->disk being NULL.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Keith Busch <kbusch@kernel.org>
Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
drivers/nvme/host/core.c