X-Git-Url: http://git.cascardo.eti.br/?a=blobdiff_plain;f=fs%2Fext3%2Fbitmap.c;h=6afc39d80253cf4560ce69b9a4b1983d1df3871b;hb=c472b43275976512e4c1c32da5ced03f339cb380;hp=ce4f82b9e528d6dd6a64045144f34792611bf764;hpb=74d89c16735d83349ea74232031819e989a49156;p=cascardo%2Flinux.git diff --git a/fs/ext3/bitmap.c b/fs/ext3/bitmap.c index ce4f82b9e528..6afc39d80253 100644 --- a/fs/ext3/bitmap.c +++ b/fs/ext3/bitmap.c @@ -13,14 +13,14 @@ #ifdef EXT3FS_DEBUG -static int nibblemap[] = {4, 3, 3, 2, 3, 2, 2, 1, 3, 2, 2, 1, 2, 1, 1, 0}; +static const int nibblemap[] = {4, 3, 3, 2, 3, 2, 2, 1, 3, 2, 2, 1, 2, 1, 1, 0}; unsigned long ext3_count_free (struct buffer_head * map, unsigned int numchars) { unsigned int i; unsigned long sum = 0; - if (!map) + if (!map) return (0); for (i = 0; i < numchars; i++) sum += nibblemap[map->b_data[i] & 0xf] +