[lxc-devel] [PATCH] lxcapi_set_cgroup_item: remove duplicate == 0

Serge Hallyn serge.hallyn at ubuntu.com
Wed Jul 3 17:48:00 UTC 2013


Quoting Bogdan Purcareata (bogdan.purcareata at freescale.com):
> Signed-off-by: Bogdan Purcareata <bogdan.purcareata at freescale.com>

The subject was supposed to be "Serge is a blind idiot" :)

Acked-by: Serge E. Hallyn <serge.hallyn at ubuntu.com>

thanks!

> ---
>  src/lxc/lxccontainer.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/lxc/lxccontainer.c b/src/lxc/lxccontainer.c
> index 677fa56..4e71fb1 100644
> --- a/src/lxc/lxccontainer.c
> +++ b/src/lxc/lxccontainer.c
> @@ -1393,7 +1393,7 @@ static bool lxcapi_set_cgroup_item(struct lxc_container *c, const char *subsys,
>  	if (container_disk_lock(c))
>  		return false;
>  
> -	ret = lxc_cgroup_set(c->name, subsys, value, c->config_path) == 0;
> +	ret = lxc_cgroup_set(c->name, subsys, value, c->config_path);
>  
>  	container_disk_unlock(c);
>  	return ret == 0;
> -- 
> 1.7.10.4
> 
> 
> 
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by Windows:
> 
> Build for Windows Store.
> 
> http://p.sf.net/sfu/windows-dev2dev
> _______________________________________________
> Lxc-devel mailing list
> Lxc-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/lxc-devel




More information about the lxc-devel mailing list