diff options
author | Anatolij Gustschin <agust@denx.de> | 2012-05-20 11:52:47 +0000 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2012-05-22 10:15:42 +0200 |
commit | 10d4e0f9fe6cea504fab7ad4e4a958b565cf43af (patch) | |
tree | a872c7e808ccc3f91ae049e34d667ac3cc2f3f9a /common/cmd_nand.c | |
parent | 5017436366d785b1add39d25e4410e37a73bf49c (diff) | |
download | u-boot-imx-10d4e0f9fe6cea504fab7ad4e4a958b565cf43af.zip u-boot-imx-10d4e0f9fe6cea504fab7ad4e4a958b565cf43af.tar.gz u-boot-imx-10d4e0f9fe6cea504fab7ad4e4a958b565cf43af.tar.bz2 |
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 <agust@denx.de>
Cc: Scott Wood <scottwood@freescale.com>
Diffstat (limited to 'common/cmd_nand.c')
-rw-r--r-- | common/cmd_nand.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/common/cmd_nand.c b/common/cmd_nand.c index f060a31..fa44295 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 |