diff options
author | David Woodhouse <dwmw2@infradead.org> | 2006-10-27 02:53:08 -0400 |
---|---|---|
committer | David Woodhouse <dwmw2@infradead.org> | 2006-10-27 02:53:08 -0400 |
commit | 2c8cfdcbeb1ab0ec7bbd5af1be311b55281154c4 (patch) | |
tree | 8d1062fcc02d29be83fde5f13c0e3bfe39aea464 /drivers/mtd | |
parent | 470b0a90d6a21cb72b671215f12ec7ec8a0db2c0 (diff) |
[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: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'drivers/mtd')
-rw-r--r-- | drivers/mtd/nand/cafe_ecc.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/mtd/nand/cafe_ecc.c b/drivers/mtd/nand/cafe_ecc.c index c4bec37e73eb..46214602d205 100644 --- a/drivers/mtd/nand/cafe_ecc.c +++ b/drivers/mtd/nand/cafe_ecc.c | |||
@@ -1045,7 +1045,6 @@ static unsigned short err_pos_lut[4096] = { | |||
1045 | static unsigned short err_pos(unsigned short din) | 1045 | static unsigned short err_pos(unsigned short din) |
1046 | { | 1046 | { |
1047 | BUG_ON(din > 4096); | 1047 | BUG_ON(din > 4096); |
1048 | BUG_ON(err_pos_lut[din] == 0xfff); | ||
1049 | return err_pos_lut[din]; | 1048 | return err_pos_lut[din]; |
1050 | } | 1049 | } |
1051 | static int chk_no_err_only(unsigned short *chk_syndrome_list, unsigned short *err_info) | 1050 | static int chk_no_err_only(unsigned short *chk_syndrome_list, unsigned short *err_info) |