[PATCH] ext4: ialloc: Remove variables defined more than once in a function

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <kunyu@xxxxxxxxxxxx>
---
 fs/ext4/ialloc.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/fs/ext4/ialloc.c b/fs/ext4/ialloc.c
index 63f9bb6e8851..be9f742f9415 100644
--- a/fs/ext4/ialloc.c
+++ b/fs/ext4/ialloc.c
@@ -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




[Index of Archives]     [Reiser Filesystem Development]     [Ceph FS]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux FS]     [Yosemite National Park]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]     [Linux Media]

  Powered by Linux