summaryrefslogtreecommitdiffstats
path: root/fs/ext3/balloc.c
diff options
context:
space:
mode:
authorNamhyung Kim <namhyung@gmail.com>2010-10-11 02:10:45 +0900
committerJan Kara <jack@suse.cz>2010-10-28 01:30:03 +0200
commit57e94d8647e9aa60ad317ccd0cd54eefd603f1fe (patch)
tree6151046672c86109497bfbb08f61be7585251d51 /fs/ext3/balloc.c
parentdf0d6b8ff152b1a1aaae17c27a445ad025a358bd (diff)
downloadlinux-57e94d8647e9aa60ad317ccd0cd54eefd603f1fe.tar.gz
linux-57e94d8647e9aa60ad317ccd0cd54eefd603f1fe.tar.bz2
linux-57e94d8647e9aa60ad317ccd0cd54eefd603f1fe.zip
ext3: Remove unnecessary casts on bh->b_data
bh->b_data is already a pointer to char so casts to 'char *' should be meaningless. Remove them. Signed-off-by: Namhyung Kim <namhyung@gmail.com> Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'fs/ext3/balloc.c')
-rw-r--r--fs/ext3/balloc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/ext3/balloc.c b/fs/ext3/balloc.c
index 4a32511f4ded..a49ce4a7c23d 100644
--- a/fs/ext3/balloc.c
+++ b/fs/ext3/balloc.c
@@ -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;