Commit 4d9ebbe2 authored by Yangtao Li's avatar Yangtao Li Committed by Tejun Heo

cgroup: remove unnecessary unlikely()

WARN_ON() already contains an unlikely(), so it's not necessary to use
unlikely.
Signed-off-by: default avatarYangtao Li <tiny.windzz@gmail.com>
Signed-off-by: default avatarTejun Heo <tj@kernel.org>
parent 65102238
...@@ -5978,11 +5978,9 @@ static ssize_t show_delegatable_files(struct cftype *files, char *buf, ...@@ -5978,11 +5978,9 @@ static ssize_t show_delegatable_files(struct cftype *files, char *buf,
ret += snprintf(buf + ret, size - ret, "%s\n", cft->name); ret += snprintf(buf + ret, size - ret, "%s\n", cft->name);
if (unlikely(ret >= size)) { if (WARN_ON(ret >= size))
WARN_ON(1);
break; break;
} }
}
return ret; return ret;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment