1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-23 21:35:11 +03:00

namespace: (void)ify a number of syscalls

This commit is contained in:
Lennart Poettering 2019-03-25 16:38:33 +01:00
parent 5f7a690aaa
commit 1019a48f40

View File

@ -760,27 +760,27 @@ static int mount_private_dev(MountEntry *m) {
goto fail; goto fail;
} }
rmdir(dev); (void) rmdir(dev);
rmdir(temporary_mount); (void) rmdir(temporary_mount);
return 0; return 0;
fail: fail:
if (devpts) if (devpts)
umount(devpts); (void) umount(devpts);
if (devshm) if (devshm)
umount(devshm); (void) umount(devshm);
if (devhugepages) if (devhugepages)
umount(devhugepages); (void) umount(devhugepages);
if (devmqueue) if (devmqueue)
umount(devmqueue); (void) umount(devmqueue);
umount(dev); (void) umount(dev);
rmdir(dev); (void) rmdir(dev);
rmdir(temporary_mount); (void) rmdir(temporary_mount);
return r; return r;
} }