kselftest/cgroup: fix variable dereferenced before check warning
cg_name(const char *root, const char *name) is always called with non-empty root and name arguments, so there is no sense in checking it in the function body (after using in strlen()). Signed-off-by: NRoman Gushchin <guro@fb.com> Reported-by: NDan Carpenter <dan.carpenter@oracle.com> Signed-off-by: NShuah Khan (Samsung OSG) <shuah@kernel.org>
Showing
想要评论请 注册 或 登录