Re: [PATCH] kselftest/cgroup: fix variable dereferenced before check warning
From: Shuah Khan
Date: Tue May 22 2018 - 10:41:39 EST
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@xxxxxx>
> Reported-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx>
> Cc: linux-kselftest@xxxxxxxxxxxxxxx
Thanks. I will queue this up for 4.18-rc1
-- Shuah