Skip to content

Commit

Permalink
[MTD] NAND: Café ECC -- remove spurious BUG_ON() in err_pos()
Browse files Browse the repository at this point in the history
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: David Woodhouse <dwmw2@infradead.org>
  • Loading branch information
David Woodhouse committed Oct 27, 2006
1 parent 470b0a9 commit 2c8cfdc
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/mtd/nand/cafe_ecc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 2c8cfdc

Please sign in to comment.