[PATCH -next] mtd: ftl: use container_of() rather than cast

Miquel Raynal miquel.raynal at bootlin.com
Mon Sep 19 09:15:46 PDT 2022


On Tue, 2022-08-16 at 13:59:10 UTC, Gaosheng Cui wrote:
> The container_of() is much more readable and also safer.
> 
> Signed-off-by: Gaosheng Cui <cuigaosheng1 at huawei.com>

Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git mtd/next, thanks.

Miquel



More information about the linux-mtd mailing list