Messages in this thread | | | Subject | Re: [PATCH] kselftest/cgroup: fix variable dereferenced before check warning | From | Shuah Khan <> | Date | Tue, 22 May 2018 09:35:35 -0600 |
| |
On 05/22/2018 04:10 AM, Roman Gushchin wrote: > 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 <guro@fb.com> > Reported-by: Dan Carpenter <dan.carpenter@oracle.com> > Cc: linux-kselftest@vger.kernel.org
Thanks. I will queue this up for 4.18-rc1
-- Shuah
| |