Skip to content

Commit 7fc51f9

Browse files
xupf1tytso
authored andcommitted
ext4: remove unnecessary variable initialization
Variables are assigned first and then used. Initialization is not required. Signed-off-by: XU pengfei <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 3f54247 commit 7fc51f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/ext4/inode.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5788,7 +5788,7 @@ static int ext4_meta_trans_blocks(struct inode *inode, int lblocks,
57885788
ext4_group_t groups, ngroups = ext4_get_groups_count(inode->i_sb);
57895789
int gdpblocks;
57905790
int idxblocks;
5791-
int ret = 0;
5791+
int ret;
57925792

57935793
/*
57945794
* How many index blocks need to touch to map @lblocks logical blocks

0 commit comments

Comments
 (0)