[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <fd15a968-3d75-ba22-b0b0-4ed4d2a66372@metux.net>
Date: Mon, 21 Jun 2021 12:18:15 +0200
From: "Enrico Weigelt, metux IT consult" <lkml@...ux.net>
To: Christoph Hellwig <hch@....de>,
zhouchuangao <zhouchuangao@...o.com>
Cc: Keith Busch <kbusch@...nel.org>, Jens Axboe <axboe@...com>,
Sagi Grimberg <sagi@...mberg.me>,
linux-nvme@...ts.infradead.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] drivers/nvme/host: Use kobj_to_dev() API
On 18.06.21 16:18, Christoph Hellwig wrote:
> 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.
Why so ? Why to we have kobj_to_dev() at all ?
Do you suggest, we shall get rid of it (and all similar ones) ?
--mtx
--
---
Hinweis: unverschlüsselte E-Mails können leicht abgehört und manipuliert
werden ! Für eine vertrauliche Kommunikation senden Sie bitte ihren
GPG/PGP-Schlüssel zu.
---
Enrico Weigelt, metux IT consult
Free software and Linux embedded engineering
info@...ux.net -- +49-151-27565287
Powered by blists - more mailing lists