]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
Merge branch 'master' of git://git.denx.de/u-boot-nand-flash
authorTom Rini <trini@ti.com>
Fri, 12 Jul 2013 21:18:59 +0000 (17:18 -0400)
committerTom Rini <trini@ti.com>
Fri, 12 Jul 2013 21:18:59 +0000 (17:18 -0400)
drivers/mtd/nand/mxc_nand.c

index ac435f205045e8a5f1d55643f7cdea20af98beac..40b0741f6ab23b0de80911230ef91844aae44da2 100644 (file)
@@ -1242,12 +1242,10 @@ int board_nand_init(struct nand_chip *this)
                this->ecc.mode = NAND_ECC_HW;
        }
 
-       if (this->ecc.mode == NAND_ECC_HW) {
-               if (is_mxc_nfc_1())
-                       this->ecc.strength = 1;
-               else
-                       this->ecc.strength = 4;
-       }
+       if (is_mxc_nfc_1())
+               this->ecc.strength = 1;
+       else
+               this->ecc.strength = 4;
 
        host->pagesize_2k = 0;