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

Christoph Hellwig hch at lst.de
Fri Jun 18 07:18:17 PDT 2021


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.



More information about the Linux-nvme mailing list