projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
470b0a9
)
[MTD] NAND: Café ECC -- remove spurious BUG_ON() in err_pos()
author
David Woodhouse
<dwmw2@infradead.org>
Fri, 27 Oct 2006 06:53:08 +0000
(09:53 +0300)
committer
David Woodhouse
<dwmw2@infradead.org>
Fri, 27 Oct 2006 06:53:08 +0000
(09:53 +0300)
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>
drivers/mtd/nand/cafe_ecc.c
patch
|
blob
|
history
diff --git
a/drivers/mtd/nand/cafe_ecc.c
b/drivers/mtd/nand/cafe_ecc.c
index c4bec37e73ebbd60d023530e36c9c8aca927d28f..46214602d2059c14cb5a3697df550369a34398fb 100644
(file)
--- 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] = {
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)