We're not acting based on the return value so don't log anything.
Fixes: https://discuss.linuxcontainers.org/t/warning-in-the-container-log/4072/2
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
if (ret < 0 || (size_t)ret >= sizeof(devpts_mntopts))
return -1;
- ret = umount2("/dev/pts", MNT_DETACH);
- if (ret < 0)
- SYSWARN("Failed to unmount old devpts instance");
- else
- DEBUG("Unmounted old devpts instance");
+ (void)umount2("/dev/pts", MNT_DETACH);
/* Create mountpoint for devpts instance. */
ret = mkdir("/dev/pts", 0755);