]> git.ipfire.org Git - thirdparty/lxc.git/commit
Simplify function
authorChristian Brauner <christianvanbrauner@gmail.com>
Sun, 25 Oct 2015 21:59:45 +0000 (22:59 +0100)
committerStéphane Graber <stgraber@ubuntu.com>
Fri, 6 Nov 2015 22:35:37 +0000 (17:35 -0500)
commit752b36f5b3ca11364462320e153a828e0946ded6
tree5d55fee80532871c35d1f067971ca6c0f4a9233b
parent5e2c13c00eef49880cad9534669e1e8a9d026534
Simplify function

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 <christianvanbrauner@gmail.com>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
src/lxc/conf.c