[CRIU] [PATCH 2/4] cgroup: Simplify add_cgroup

Cyrill Gorcunov gorcunov at openvz.org
Mon Jul 21 03:47:04 PDT 2014


 - xfree works well with nil argument no need for additional tests.
 - no need for @ret variable, we either success returning 0 explicitly,
   either fail with explicit -1

Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 cgroup.c | 23 ++++++++---------------
 1 file changed, 8 insertions(+), 15 deletions(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-cgroup-Simplify-add_cgroup.patch
Type: text/x-patch
Size: 1429 bytes
Desc: not available
URL: <http://lists.openvz.org/pipermail/criu/attachments/20140721/9bc40e1e/attachment.bin>


More information about the CRIU mailing list