tests: cleanup device_add_remove.c

Signed-off-by: 2xsec <dh48.jeong@samsung.com>
This commit is contained in:
2xsec 2018-07-03 18:17:03 +09:00
parent 8d72e58a24
commit e9432dfc50
No known key found for this signature in database
GPG Key ID: 0BE2750EE612F372

View 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: