From 10d4e0f9fe6cea504fab7ad4e4a958b565cf43af Mon Sep 17 00:00:00 2001 From: Anatolij Gustschin Date: Sun, 20 May 2012 11:52:47 +0000 Subject: [PATCH] common/cmd_nand.c: Fix GCC 4.6 warning cmd_nand.c: In function 'raw_access': cmd_nand.c:397:9: warning: variable 'rwsize' set but not used [-Wunused-but-set-variable] Signed-off-by: Anatolij Gustschin Cc: Scott Wood --- common/cmd_nand.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/common/cmd_nand.c b/common/cmd_nand.c index f060a317e0..fa442951d8 100644 --- a/common/cmd_nand.c +++ b/common/cmd_nand.c @@ -394,7 +394,6 @@ static int raw_access(nand_info_t *nand, ulong addr, loff_t off, ulong count, int read) { int ret = 0; - size_t rwsize; while (count--) { /* Raw access */ @@ -406,7 +405,6 @@ static int raw_access(nand_info_t *nand, ulong addr, loff_t off, ulong count, .mode = MTD_OOB_RAW }; - rwsize = nand->writesize + nand->oobsize; if (read) ret = nand->read_oob(nand, off, &ops); else -- 2.39.5