[PATCH] duplicate assignment in map_ram.c

David Woodhouse dwmw2 at infradead.org
Tue Aug 7 06:08:48 EDT 2001


ebrower at usa.net said:
> There's a duplicate assignment to mtd->erasesize in  <mtd>/drivers/mtd/
> chips/map_ram.c which is removed with the following patch. 

Applied, along with the following:
 	mtd->erasesize = PAGE_SIZE;
+ 	while(mtd->size & (mtd->erasesize - 1))
+		mtd->erasesize >>= 1;

Thanks.

--
dwmw2






More information about the linux-mtd mailing list