提交 2c8cfdcb 编写于 作者: D David Woodhouse

[MTD] NAND: Café ECC -- remove spurious BUG_ON() in err_pos()

Being a value which isn't in the table is a case we explicitly check for
in the caller. Don't BUG_ON() because it does actually happen in
practice.
Signed-off-by: NDavid Woodhouse <dwmw2@infradead.org>
上级 470b0a90
......@@ -1045,7 +1045,6 @@ static unsigned short err_pos_lut[4096] = {
static unsigned short err_pos(unsigned short din)
{
BUG_ON(din > 4096);
BUG_ON(err_pos_lut[din] == 0xfff);
return err_pos_lut[din];
}
static int chk_no_err_only(unsigned short *chk_syndrome_list, unsigned short *err_info)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册
新手
引导
客服 返回
顶部