]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: rawnand: ingenic: cleanup ARRAY_SIZE() vs sizeof() use
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 24 Jun 2020 13:26:40 +0000 (16:26 +0300)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Tue, 7 Jul 2020 18:44:43 +0000 (20:44 +0200)
commit134af6e762aadb7d7a44a271a25dae10401ebc68
treeb749d24ab29ed2bf429bf5f2b332fb2b1da71c05
parent275a9985dc3c0018351da759700277a94f7edfc0
mtd: rawnand: ingenic: cleanup ARRAY_SIZE() vs sizeof() use

The ARRAY_SIZE() is the number of elements but we want to use sizeof()
here for the number of bytes.  Fortunately, they are the same thing
because it's an array of u8 so this has no effect on runtime.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20200624132640.GC9972@mwanda
drivers/mtd/nand/raw/ingenic/jz4740_ecc.c