Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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: Roman Gushchin <[email protected]> Reported-by: Dan Carpenter <[email protected]> Signed-off-by: Shuah Khan (Samsung OSG) <[email protected]>
- Loading branch information