projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4d8e2ce
)
mtd: nand: remove redundant local variable
author
Baruch Siach
<baruch@tkos.co.il>
Thu, 22 Jan 2015 13:23:05 +0000
(15:23 +0200)
committer
Brian Norris
<computersforpeace@gmail.com>
Fri, 6 Feb 2015 04:01:09 +0000
(20:01 -0800)
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/nand/nand_base.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/mtd/nand/nand_base.c
b/drivers/mtd/nand/nand_base.c
index f6af96926f005915164ce27e15b5b9598957a30c..df7eb4ff07d156ec213b3656f9840f6e99a35710 100644
(file)
--- 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);