mtd/lib/reed_solomon rslib.c,1.5,1.6

gleixner at infradead.org gleixner at infradead.org
Mon Aug 1 12:24:31 EDT 2005


Update of /home/cvs/mtd/lib/reed_solomon
In directory phoenix.infradead.org:/tmp/cvs-serv31779

Modified Files:
	rslib.c 
Log Message:
[RS-LIB] Remove bogus limitation of nroots

The number of roots were limited to 8 for no good reason.
Remove this limitation.



Index: rslib.c
===================================================================
RCS file: /home/cvs/mtd/lib/reed_solomon/rslib.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- rslib.c	22 Oct 2004 15:41:47 -0000	1.5
+++ rslib.c	1 Aug 2005 16:24:28 -0000	1.6
@@ -198,7 +198,7 @@
     		return NULL;
 	if (prim <= 0 || prim >= (1<<symsize))
     		return NULL;
-	if (nroots < 0 || nroots >= (1<<symsize) || nroots > 8)
+	if (nroots < 0 || nroots >= (1<<symsize))
 		return NULL;
 	
 	down(&rslistlock);





More information about the linux-mtd-cvs mailing list