소스 검색

Merge branch 'master' of git://git.denx.de/u-boot-nand-flash

Tom Rini 11 년 전
부모
커밋
8d94e6848f
1개의 변경된 파일4개의 추가작업 그리고 6개의 파일을 삭제
  1. 4 6
      drivers/mtd/nand/mxc_nand.c

+ 4 - 6
drivers/mtd/nand/mxc_nand.c

@@ -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;