summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common/cmd_nand.c2
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