Commit 10d4e0f9 authored by Anatolij Gustschin's avatar Anatolij Gustschin Committed by Wolfgang Denk
Browse files

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: default avatarAnatolij Gustschin <agust@denx.de>
Cc: Scott Wood <scottwood@freescale.com>
parent 50174363
...@@ -394,7 +394,6 @@ static int raw_access(nand_info_t *nand, ulong addr, loff_t off, ulong count, ...@@ -394,7 +394,6 @@ static int raw_access(nand_info_t *nand, ulong addr, loff_t off, ulong count,
int read) int read)
{ {
int ret = 0; int ret = 0;
size_t rwsize;
while (count--) { while (count--) {
/* Raw access */ /* Raw access */
...@@ -406,7 +405,6 @@ static int raw_access(nand_info_t *nand, ulong addr, loff_t off, ulong count, ...@@ -406,7 +405,6 @@ static int raw_access(nand_info_t *nand, ulong addr, loff_t off, ulong count,
.mode = MTD_OOB_RAW .mode = MTD_OOB_RAW
}; };
rwsize = nand->writesize + nand->oobsize;
if (read) if (read)
ret = nand->read_oob(nand, off, &ops); ret = nand->read_oob(nand, off, &ops);
else else
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment