mtd: ssfdc: Improve a size determination in ssfdcr_add_mtd()
authorMarkus Elfring <elfring@users.sourceforge.net>
Wed, 27 Dec 2023 14:30:06 +0000 (15:30 +0100)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Mon, 5 Feb 2024 13:22:39 +0000 (14:22 +0100)
commit0d9a4164ba4929bbc231eef438d4cba1caee9d25
tree8f2ab6c7c4446b687a69820a2eda6e9ca47e3e8b
parent086cd7a6c50bb3206fc08e0a850daaabef03e810
mtd: ssfdc: Improve a size determination in ssfdcr_add_mtd()

Replace the specification of a data structure by a pointer dereference
as the parameter for the operator "sizeof" to make the corresponding size
determination a bit safer according to the Linux coding style convention.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/b7ee7d1b-49a2-41d8-9c8f-3674f1aecc43@web.de
drivers/mtd/ssfdc.c