]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - fs/ext3/balloc.c
ext3: Remove unnecessary casts on bh->b_data
[net-next-2.6.git] / fs / ext3 / balloc.c
index 4a32511f4deda7f75b45aeb719d41407e416cb55..a49ce4a7c23d8c8a5b9d9ac30e00aeef08858a4c 100644 (file)
@@ -792,9 +792,9 @@ find_next_usable_block(ext3_grpblk_t start, struct buffer_head *bh,
        if (here < 0)
                here = 0;
 
-       p = ((char *)bh->b_data) + (here >> 3);
+       p = bh->b_data + (here >> 3);
        r = memscan(p, 0, ((maxblocks + 7) >> 3) - (here >> 3));
-       next = (r - ((char *)bh->b_data)) << 3;
+       next = (r - bh->b_data) << 3;
 
        if (next < maxblocks && next >= start && ext3_test_allocatable(next, bh))
                return next;