[PATCH] nvme: remove ns->disk checks

Chaitanya Kulkarni Chaitanya.Kulkarni at wdc.com
Wed Jul 8 13:03:22 EDT 2020


On 7/8/20 07:50, 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.
> 
> Signed-off-by: Christoph Hellwig<hch at lst.de>

Looks good to me.

Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni at wdc.com>



More information about the Linux-nvme mailing list