]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
tests: cleanup device_add_remove.c
author2xsec <dh48.jeong@samsung.com>
Tue, 3 Jul 2018 09:17:03 +0000 (18:17 +0900)
committer2xsec <dh48.jeong@samsung.com>
Tue, 3 Jul 2018 09:17:03 +0000 (18:17 +0900)
Signed-off-by: 2xsec <dh48.jeong@samsung.com>
src/tests/device_add_remove.c

index c776729bf4baea187c588986993b140f14a4bc12..4a2e95138de25566805f1bf0d6de375d8085a03c 100644 (file)
@@ -50,6 +50,7 @@ int main(int argc, char *argv[])
                fprintf(stderr, "Adding %s to the container (%s) failed...\n", DEVICE, NAME);
                goto out;
        }
+
        if (!c->remove_device_node(c, DEVICE, DEVICE)) {
                fprintf(stderr, "Removing %s from the container (%s) failed...\n", DEVICE, NAME);
                goto out;
@@ -64,6 +65,7 @@ int main(int argc, char *argv[])
                fprintf(stderr, "Destroying the container (%s) failed...\n", NAME);
                goto out;
        }
+
        ret = 0;
 
 out: