Commit 35109451 authored by Roel Kluin's avatar Roel Kluin Committed by David Woodhouse

mtd: inftl: misplaced parenthesis in find_boot_record

The parenthesis was misplaced, upon error a one was shown.

[dwmw2: Fix the code not to do the assignment within the if() statement]
Signed-off-by: default avatarRoel Kluin <roel.kluin@gmail.com>
Signed-off-by: default avatarArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: default avatarDavid Woodhouse <David.Woodhouse@intel.com>
parent 932f5d21
...@@ -100,9 +100,10 @@ static int find_boot_record(struct INFTLrecord *inftl) ...@@ -100,9 +100,10 @@ static int find_boot_record(struct INFTLrecord *inftl)
} }
/* To be safer with BIOS, also use erase mark as discriminant */ /* To be safer with BIOS, also use erase mark as discriminant */
if ((ret = inftl_read_oob(mtd, block * inftl->EraseSize + ret = inftl_read_oob(mtd,
SECTORSIZE + 8, 8, &retlen, block * inftl->EraseSize + SECTORSIZE + 8,
(char *)&h1) < 0)) { 8, &retlen,(char *)&h1);
if (ret < 0) {
printk(KERN_WARNING "INFTL: ANAND header found at " printk(KERN_WARNING "INFTL: ANAND header found at "
"0x%x in mtd%d, but OOB data read failed " "0x%x in mtd%d, but OOB data read failed "
"(err %d)\n", block * inftl->EraseSize, "(err %d)\n", block * inftl->EraseSize,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment