Re: [PATCH] drivers/nvme/host: Use kobj_to_dev() API

From: Christoph Hellwig
Date: Fri Jun 18 2021 - 10:18:23 EST


On Fri, Jun 18, 2021 at 07:10:58AM -0700, zhouchuangao wrote:
> Use kobj_to_dev() API instead of container_of().

Why? That just makes the code harder to read.