From mboxrd@z Thu Jan 1 00:00:00 1970 From: Scott Wood Date: Tue, 13 Dec 2011 12:47:42 -0600 Subject: [U-Boot] [PATCH V3] nand_spl_simple: store ecc data on the stack In-Reply-To: <1323798615-23154-1-git-send-email-sbabic@denx.de> References: <1323624146-8402-1-git-send-email-sbabic@denx.de> <1323798615-23154-1-git-send-email-sbabic@denx.de> Message-ID: <4EE79DCE.3010407@freescale.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 12/13/2011 11:50 AM, Stefano Babic wrote: > /* Pick the ECC bytes out of the oob data */ > - for (i = 0; i < CONFIG_SYS_NAND_ECCTOTAL; i++) > + for (i = 0; i < (SYS_NAND_ECCTOTAL); i++) > ecc_code[i] = oob_data[nand_ecc_pos[i]]; [snip] > @@ -213,10 +203,10 @@ static int nand_read_page(int block, int page, void *dst) > this->read_buf(&mtd, oob_data, CONFIG_SYS_NAND_OOBSIZE); > > /* Pick the ECC bytes out of the oob data */ > - for (i = 0; i < CONFIG_SYS_NAND_ECCTOTAL; i++) > + for (i = 0; i < (SYS_NAND_ECCTOTAL); i++) No need for parens around SYS_NAND_ECCTOTAL. -Scott