Commit 0b7a814c authored by Liu Xiang's avatar Liu Xiang Committed by Jan Kara
Browse files

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: default avatarLiu Xiang <liu.xiang6@zte.com.cn>
Signed-off-by: default avatarJan Kara <jack@suse.cz>
parent f068ebd1
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -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;
}