From mboxrd@z Thu Jan 1 00:00:00 1970 From: Miquel Raynal Date: Tue, 07 Jul 2020 18:56:46 +0000 Subject: Re: [PATCH] mtd: rawnand: ingenic: cleanup ARRAY_SIZE() vs sizeof() use Message-Id: <20200707185646.24105-1-miquel.raynal@bootlin.com> List-Id: In-Reply-To: <20200624132640.GC9972@mwanda> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Dan Carpenter , Paul Cercueil Cc: Vignesh Raghavendra , Richard Weinberger , kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org, Harvey Hunt , linux-mtd@lists.infradead.org, Miquel Raynal On Wed, 2020-06-24 at 13:26:40 UTC, Dan Carpenter wrote: > 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 Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git nand/next, thanks. Miquel