| Submitter | roel kluin |
|---|---|
| Date | Feb. 15, 2010, 10:01 p.m. |
| Message ID | <4B79C444.8090402@gmail.com> |
| Download | mbox | patch |
| Permalink | /patch/45440/ |
| State | New |
| Headers | show |
Comments
On Mon, 2010-02-15 at 23:01 +0100, Roel Kluin wrote: > The parenthesis was misplaced > > Signed-off-by: Roel Kluin <roel.kluin@gmail.com> > --- > Not sure if you care about this one, it is between #if 0 ... #endif > > diff --git a/drivers/mtd/nftlmount.c b/drivers/mtd/nftlmount.c > index 8b22b18..1ae6a02 100644 > --- a/drivers/mtd/nftlmount.c > +++ b/drivers/mtd/nftlmount.c > @@ -109,7 +109,7 @@ static int find_boot_record(struct NFTLrecord *nftl) > > /* Finally reread to check ECC */ > if ((ret = mtd->read(mtd, block * nftl->EraseSize, SECTORSIZE, > - &retlen, buf) < 0)) { > + &retlen, buf)) < 0) { > printk(KERN_NOTICE "ANAND header found at 0x%x in mtd%d, but ECC read failed (err %d)\n", > block * nftl->EraseSize, nftl->mbd.mtd->index, ret); > continue; Pushed both patches to my l2-mtd-2.6.git / master.
Patch
diff --git a/drivers/mtd/nftlmount.c b/drivers/mtd/nftlmount.c index 8b22b18..1ae6a02 100644 --- a/drivers/mtd/nftlmount.c +++ b/drivers/mtd/nftlmount.c @@ -109,7 +109,7 @@ static int find_boot_record(struct NFTLrecord *nftl) /* Finally reread to check ECC */ if ((ret = mtd->read(mtd, block * nftl->EraseSize, SECTORSIZE, - &retlen, buf) < 0)) { + &retlen, buf)) < 0) { printk(KERN_NOTICE "ANAND header found at 0x%x in mtd%d, but ECC read failed (err %d)\n", block * nftl->EraseSize, nftl->mbd.mtd->index, ret); continue;
The parenthesis was misplaced Signed-off-by: Roel Kluin <roel.kluin@gmail.com> --- Not sure if you care about this one, it is between #if 0 ... #endif