Skip to content

Commit

Permalink
mtd: nand: remove redundant local variable
Browse files Browse the repository at this point in the history
Signed-off-by: Baruch Siach <[email protected]>
Signed-off-by: Brian Norris <[email protected]>
  • Loading branch information
baruchsiach authored and computersforpeace committed Feb 6, 2015
1 parent 4d8e2ce commit 2ea69d2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/mtd/nand/nand_base.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 2ea69d2

Please sign in to comment.