1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-08-21 21:58:03 +03:00
openwrt-xburst/target/linux/generic/patches-2.6.36/083-mtd_fix_nand_correct_data_return_code.patch
acoul e60c0328f0 linux/generic: add kernel 2.6.36 preliminary support
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22832 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-08-29 14:35:23 +00:00

13 lines
371 B
Diff

--- a/drivers/mtd/nand/nand_ecc.c
+++ b/drivers/mtd/nand/nand_ecc.c
@@ -507,8 +507,7 @@ int __nand_correct_data(unsigned char *b
if ((bitsperbyte[b0] + bitsperbyte[b1] + bitsperbyte[b2]) == 1)
return 1; /* error in ecc data; no action needed */
- printk(KERN_ERR "uncorrectable error : ");
- return -1;
+ return -EBADMSG;
}
EXPORT_SYMBOL(__nand_correct_data);