[PATCH] nvme: remove ns->disk checks
Keith Busch
kbusch at kernel.org
Wed Jul 8 13:12:07 EDT 2020
On Wed, Jul 08, 2020 at 04:40:15PM +0200, Christoph Hellwig wrote:
> 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.
Looks like all these pointless checks were from an older interaction
with lightnvm that is no longer applicable, so looks good.
Reviewed-by: Keith Busch <kbusch at kernel.org>
More information about the Linux-nvme
mailing list