]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: ftl: use container_of() rather than cast
authorGaosheng Cui <cuigaosheng1@huawei.com>
Tue, 16 Aug 2022 13:59:10 +0000 (21:59 +0800)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Mon, 19 Sep 2022 16:14:53 +0000 (18:14 +0200)
commitdac9e7df9394139018f06ad341935033396bbf6e
tree75ea9f4da9d0d96ba18a2e9075f3e357ed0c1299
parent582fef65dc85897b4145a56f642565f8602c0376
mtd: ftl: use container_of() rather than cast

The container_of() is much more readable and also safer.

Signed-off-by: Gaosheng Cui <cuigaosheng1@huawei.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20220816135910.268016-1-cuigaosheng1@huawei.com
drivers/mtd/ftl.c