From mboxrd@z Thu Jan 1 00:00:00 1970 From: Heiko Schocher Date: Fri, 05 Sep 2014 10:06:48 +0200 Subject: [U-Boot] [PATCH] mtd: nand: Fix length bug in ioread16_rep() and iowrite16_rep() In-Reply-To: <1409903821-24398-1-git-send-email-sr@denx.de> References: <1409903821-24398-1-git-send-email-sr@denx.de> Message-ID: <54096F18.2000907@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hello Stefan, Am 05.09.2014 09:57, schrieb Stefan Roese: > The ioread16_rep() and iowrite16_rep() implementations are U-Boot specific > and have been introduced with the Linux MTD v3.14 sync. While introducing > these functions, the length for the loop has been miscalculated. The ">> 1" > is already present in the caller. So lets remove it in the function. > > Tested on omap3_ha. > > Signed-off-by: Stefan Roese > Cc: Heiko Schocher > Cc: Tom Rini > Cc: Scott Wood > --- > drivers/mtd/nand/nand_base.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) Good catch, thanks! Acked-by: Heiko Schocher bye, Heiko -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany