]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
mtd: inftl: misplaced parenthesis in find_boot_record
authorRoel Kluin <roel.kluin@gmail.com>
Mon, 15 Feb 2010 21:57:24 +0000 (22:57 +0100)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Fri, 26 Feb 2010 13:22:07 +0000 (13:22 +0000)
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: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/inftlmount.c

index 32e82aef3e5392550012b694e5dd58ffd71d6d1d..8f988d7d3c5c9925320eae830b4a44a829b360bc 100644 (file)
@@ -100,9 +100,10 @@ static int find_boot_record(struct INFTLrecord *inftl)
                }
 
                /* To be safer with BIOS, also use erase mark as discriminant */
-               if ((ret = inftl_read_oob(mtd, block * inftl->EraseSize +
-                                         SECTORSIZE + 8, 8, &retlen,
-                                         (char *)&h1) < 0)) {
+               ret = inftl_read_oob(mtd,
+                                    block * inftl->EraseSize + SECTORSIZE + 8,
+                                    8, &retlen,(char *)&h1);
+               if (ret < 0) {
                        printk(KERN_WARNING "INFTL: ANAND header found at "
                                "0x%x in mtd%d, but OOB data read failed "
                                "(err %d)\n", block * inftl->EraseSize,