diff options
author | Theodore Ts'o <tytso@mit.edu> | 2012-05-29 01:47:52 +0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2012-05-29 01:47:52 +0400 |
commit | 2716b80284c5ca415b8ce93ca178b0ca28482568 (patch) | |
tree | 51cd4aba2dea62cc5d9fd23b5fb24240c7952175 /fs/ext4/resize.c | |
parent | 7e936b737211e6b54e34b71a827e56b872e958d8 (diff) | |
download | linux-2716b80284c5ca415b8ce93ca178b0ca28482568.tar.xz |
ext4: remove redundundant "(char *) bh->b_data" casts
The b_data field of the buffer_head is already a char *, so there's no
point casting it to a char *.
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/resize.c')
-rw-r--r-- | fs/ext4/resize.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext4/resize.c b/fs/ext4/resize.c index 05c7979226e5..7ea6cbb44121 100644 --- a/fs/ext4/resize.c +++ b/fs/ext4/resize.c @@ -1145,7 +1145,7 @@ static int ext4_setup_new_descs(handle_t *handle, struct super_block *sb, */ gdb_bh = sbi->s_group_desc[gdb_num]; /* Update group descriptor block for new group */ - gdp = (struct ext4_group_desc *)((char *)gdb_bh->b_data + + gdp = (struct ext4_group_desc *)(gdb_bh->b_data + gdb_off * EXT4_DESC_SIZE(sb)); memset(gdp, 0, EXT4_DESC_SIZE(sb)); |