Re: [lxc-devel] [PATCH 1/2] Simplify function

2015-10-27 Thread Serge Hallyn
Quoting Christian Brauner (christianvanbrau...@gmail.com): > Instead of duplicating the cleanup-code, once for success and once for > failure, > simply keep a variable fret which is -1 in the beginning and gets set to 0 on > success or stays -1 on failure. > > Signed-off-by: Christian Brauner

[lxc-devel] [PATCH 1/2] Simplify function

2015-10-25 Thread Christian Brauner
Instead of duplicating the cleanup-code, once for success and once for failure, simply keep a variable fret which is -1 in the beginning and gets set to 0 on success or stays -1 on failure. Signed-off-by: Christian Brauner --- src/lxc/conf.c | 14 ++ 1