summaryrefslogtreecommitdiffstats
path: root/drivers/mtd
diff options
context:
space:
mode:
authorBaruch Siach <baruch@tkos.co.il>2015-01-22 14:23:05 +0100
committerBrian Norris <computersforpeace@gmail.com>2015-02-06 05:01:09 +0100
commit2ea69d217a376b4d549fc155675f948eaf7afa86 (patch)
tree67e4b85b78b96cec3038e5a20e61edddf93551e7 /drivers/mtd
parentMAINTAINERS: add maintainer entry for FREESCALE QUAD SPI driver (diff)
downloadlinux-2ea69d217a376b4d549fc155675f948eaf7afa86.tar.xz
linux-2ea69d217a376b4d549fc155675f948eaf7afa86.zip
mtd: nand: remove redundant local variable
Signed-off-by: Baruch Siach <baruch@tkos.co.il> Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Diffstat (limited to 'drivers/mtd')
-rw-r--r--drivers/mtd/nand/nand_base.c3
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,
static int nand_read_oob_syndrome(struct mtd_info *mtd, struct nand_chip *chip,
int page)
{
- uint8_t *buf = chip->oob_poi;
int length = mtd->oobsize;
int chunk = chip->ecc.bytes + chip->ecc.prepad + chip->ecc.postpad;
int eccsize = chip->ecc.size;
- uint8_t *bufpoi = buf;
+ uint8_t *bufpoi = chip->oob_poi;
int i, toread, sndrnd = 0, pos;
chip->cmdfunc(mtd, NAND_CMD_READ0, chip->ecc.size, page);