mtd/include/linux/mtd map.h,1.50,1.51
gleixner at infradead.org
gleixner at infradead.org
Wed May 25 06:15:32 EDT 2005
Update of /home/cvs/mtd/include/linux/mtd
In directory phoenix.infradead.org:/tmp/cvs-serv27777
Modified Files:
map.h
Log Message:
Fix a compiler warning
Index: map.h
===================================================================
RCS file: /home/cvs/mtd/include/linux/mtd/map.h,v
retrieving revision 1.50
retrieving revision 1.51
diff -u -r1.50 -r1.51
--- map.h 25 May 2005 09:53:17 -0000 1.50
+++ map.h 25 May 2005 10:15:29 -0000 1.51
@@ -352,7 +352,8 @@
int i;
if (map_bankwidth(map) < MAP_FF_LIMIT) {
- r.x[0] = (1 << (8*map_bankwidth(map))) - 1;
+ int bw = 8 * map_bankwidth;
+ r.x[0] = (1 << bw) - 1;
} else {
for (i=0; i<map_words(map); i++)
r.x[i] = ~0UL;
More information about the linux-mtd-cvs
mailing list