ext2: Remove redundant check for finding no group
When best_desc keeps NULL, best_group keeps -1, too. So we can return best_group directly. Signed-off-by: Liu Xiang <liu.xiang6@zte.com.cn> Signed-off-by: Jan Kara <jack@suse.cz>
This commit is contained in:
parent
f068ebd13b
commit
0b7a814c26
@ -222,8 +222,6 @@ static int find_group_dir(struct super_block *sb, struct inode *parent)
|
||||
best_desc = desc;
|
||||
}
|
||||
}
|
||||
if (!best_desc)
|
||||
return -1;
|
||||
|
||||
return best_group;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user