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:
Liu Xiang 2019-01-25 22:01:36 +08:00 committed by Jan Kara
parent f068ebd13b
commit 0b7a814c26

View File

@ -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;
}