(blk_t) cast in ext2fs_new_block2()
PATCH 5/6 (blk_t) cast in ext2fs_new_block2()
Found by code inspection after similar gratuitous cast in ext2fs_get_free_blocks2() (first patch in this series).
Signed-off-by Nick Dokos <[email protected]>
--- lib/ext2fs/alloc.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
lib/ext2fs/alloc.c +1 -1
@@ -170,7 +170,7 @@ errcode_t ext2fs_new_block2(ext2_filsys fs, blk64_t goal, (i - fs->super->s_first_data_block) / EXT2_BLOCKS_PER_GROUP(fs->super)); -if (!ext2fs_fast_test_block_bitmap2 (map, (blk_t ) i)) { +if (!ext2fs_fast_test_block_bitmap2 (map, i)) { *ret = i;return 0 ; }
Signature · 1 line
1.6.0.6
Quoted 24 lines · Nick Dokos
Found by code inspection after similar gratuitous cast in
ext2fs_get_free_blocks2()(first patch in this series).Signed-off-by Nick Dokos <[email protected]>--- lib/ext2fs/alloc.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)lib/ext2fs/alloc.c +1
-1@@ -170,7 +170,7 @@ errcode_t ext2fs_new_block2(ext2_filsys fs, blk64_t goal, (i - fs->super->s_first_data_block) / EXT2_BLOCKS_PER_GROUP(fs->super)); -if (!ext2fs_fast_test_block_bitmap2 (map, (blk_t ) i)) { +if (!ext2fs_fast_test_block_bitmap2 (map, i)) { *ret = i;return 0 ; }Signature · 1 line
1.6.0.6
Signed-off-by Valerie Aurora (Henson) <[email protected]>
-VAL