mtd: rfd_ftl: use container_of() rather than cast
authorSean Young <sean@mess.org>
Sat, 7 Aug 2021 21:45:38 +0000 (22:45 +0100)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Tue, 17 Aug 2021 16:42:58 +0000 (18:42 +0200)
commitfa451399d65a06747379ab1e246faf0b28e1c05f
tree8568584dbc3dc53fe52e9442a3a89880e1cf9523
parentd056f8cd2fc29fbfb45f936cc1ac36ff67d7db93
mtd: rfd_ftl: use container_of() rather than cast

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

Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20210807214538.14484-6-sean@mess.org
drivers/mtd/rfd_ftl.c