提交 0b7a814c 编写于 作者: L Liu Xiang 提交者: Jan Kara

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: NLiu Xiang <liu.xiang6@zte.com.cn>
Signed-off-by: NJan Kara <jack@suse.cz>
上级 f068ebd1
...@@ -222,8 +222,6 @@ static int find_group_dir(struct super_block *sb, struct inode *parent) ...@@ -222,8 +222,6 @@ static int find_group_dir(struct super_block *sb, struct inode *parent)
best_desc = desc; best_desc = desc;
} }
} }
if (!best_desc)
return -1;
return best_group; return best_group;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册