ext4: ialloc: Remove variables defined more than once in a function
PATCH 1/1 ext4: ialloc: Remove variables defined more than once in a function
The grp pointer variable has been defined at the beginning of the function. It is not necessary to define it here, so remove the variable definition here.
Signed-off-by Li kunyu <[email protected]>
--- fs/ext4/ialloc.c | 1 - 1 file changed, 1 deletion(-)
fs/ext4/ialloc.c +0 -1
@@ -1181,7 +1181,6 @@ struct inode *__ext4_new_inode(struct user_namespace *mnt_userns,/* Update the relevant bg descriptor fields */ if (ext4_has_group_desc_csum (sb)) {int free; -struct ext4_group_info *grp =NULL ;if (!(sbi->s_mount_state &EXT4_FC_REPLAY )) { grp =ext4_get_group_info (sb, group);
Signature · 1 line
2.18.2
Quoted 8 lines · Li kunyu
The grp pointer variable has been defined at the beginning of the function. It is not necessary to define it here, so remove the variable definition here.
Signed-off-by Li kunyu <[email protected]>--- fs/ext4/ialloc.c | 1 - 1 file changed, 1 deletion(-)
Looks good to me. Please feel free to add -
Reviewed-by Ritesh Harjani (IBM) <[email protected]>
Quoted 15 lines
fs/ext4/ialloc.c +0
-2@@ -1181,7 +1181,6 @@ struct inode *__ext4_new_inode(struct user_namespace *mnt_userns,/* Update the relevant bg descriptor fields */ if (ext4_has_group_desc_csum (sb)) {int free; -struct ext4_group_info *grp =NULL ;if (!(sbi->s_mount_state &EXT4_FC_REPLAY )) { grp =ext4_get_group_info (sb, group); --2.18.2