diff options
-rw-r--r-- | drivers/mtd/nand/nand_base.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/mtd/nand/nand_base.c b/drivers/mtd/nand/nand_base.c index f6af96926f00..df7eb4ff07d1 100644 --- a/drivers/mtd/nand/nand_base.c +++ b/drivers/mtd/nand/nand_base.c | |||
@@ -1750,11 +1750,10 @@ static int nand_read_oob_std(struct mtd_info *mtd, struct nand_chip *chip, | |||
1750 | static int nand_read_oob_syndrome(struct mtd_info *mtd, struct nand_chip *chip, | 1750 | static int nand_read_oob_syndrome(struct mtd_info *mtd, struct nand_chip *chip, |
1751 | int page) | 1751 | int page) |
1752 | { | 1752 | { |
1753 | uint8_t *buf = chip->oob_poi; | ||
1754 | int length = mtd->oobsize; | 1753 | int length = mtd->oobsize; |
1755 | int chunk = chip->ecc.bytes + chip->ecc.prepad + chip->ecc.postpad; | 1754 | int chunk = chip->ecc.bytes + chip->ecc.prepad + chip->ecc.postpad; |
1756 | int eccsize = chip->ecc.size; | 1755 | int eccsize = chip->ecc.size; |
1757 | uint8_t *bufpoi = buf; | 1756 | uint8_t *bufpoi = chip->oob_poi; |
1758 | int i, toread, sndrnd = 0, pos; | 1757 | int i, toread, sndrnd = 0, pos; |
1759 | 1758 | ||
1760 | chip->cmdfunc(mtd, NAND_CMD_READ0, chip->ecc.size, page); | 1759 | chip->cmdfunc(mtd, NAND_CMD_READ0, chip->ecc.size, page); |