mtd: nand: remove redundant local variable
Linux-MTD Mailing List
linux-mtd at lists.infradead.org
Mon Feb 16 18:59:06 PST 2015
Gitweb: http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=2ea69d217a376b4d549fc155675f948eaf7afa86
Commit: 2ea69d217a376b4d549fc155675f948eaf7afa86
Parent: 4d8e2cef25c3c8c8fcb9a4b7b5cf5bba771a43a7
Author: Baruch Siach <baruch at tkos.co.il>
AuthorDate: Thu Jan 22 15:23:05 2015 +0200
Committer: Brian Norris <computersforpeace at gmail.com>
CommitDate: Thu Feb 5 20:01:09 2015 -0800
mtd: nand: remove redundant local variable
Signed-off-by: Baruch Siach <baruch at tkos.co.il>
Signed-off-by: Brian Norris <computersforpeace at gmail.com>
---
drivers/mtd/nand/nand_base.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/mtd/nand/nand_base.c b/drivers/mtd/nand/nand_base.c
index f6af969..df7eb4f 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);
More information about the linux-mtd-cvs
mailing list