kernel/mm/swap_cgroup.c
.. .. @@ -171,9 +171,6 @@ 171 171 unsigned long length; 172 172 struct swap_cgroup_ctrl *ctrl; 173 173 174 - if (!do_swap_account)175 - return 0;176 -177 174 length = DIV_ROUND_UP(max_pages, SC_PER_PAGE); 178 175 array_size = length * sizeof(void *); 179 176 .. .. @@ -208,9 +205,6 @@ 208 205 struct page **map; 209 206 unsigned long i, length; 210 207 struct swap_cgroup_ctrl *ctrl; 211 -212 - if (!do_swap_account)213 - return;214 208 215 209 mutex_lock(&swap_cgroup_mutex); 216 210 ctrl = &swap_cgroup_ctrl[type];