summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorstsp <stsp@openbsd.org>2013-11-09 13:39:37 +0000
committerstsp <stsp@openbsd.org>2013-11-09 13:39:37 +0000
commit5a2df36492264d6591ba18e7fc1ccc5c70ead53b (patch)
treeddbf12f87049ba110afd921f8ef4099989a184b8
parentProperly check realpath() return value during argv processing in libfuse. (diff)
downloadwireguard-openbsd-5a2df36492264d6591ba18e7fc1ccc5c70ead53b.tar.xz
wireguard-openbsd-5a2df36492264d6591ba18e7fc1ccc5c70ead53b.zip
Simplify fuse_unmount(). No functional change.
ok jung@
-rw-r--r--lib/libfuse/fuse.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/lib/libfuse/fuse.c b/lib/libfuse/fuse.c
index 02428db0735..3846d835491 100644
--- a/lib/libfuse/fuse.c
+++ b/lib/libfuse/fuse.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fuse.c,v 1.15 2013/11/09 10:35:31 stsp Exp $ */
+/* $OpenBSD: fuse.c,v 1.16 2013/11/09 13:39:37 stsp Exp $ */
/*
* Copyright (c) 2013 Sylvestre Gallon <ccna.syl@gmail.com>
*
@@ -191,15 +191,11 @@ bad:
void
fuse_unmount(const char *dir, unused struct fuse_chan *ch)
{
- int ret;
-
if (ch->dead)
- return ;
+ return;
- if ((ret = unmount(dir, MNT_UPDATE)) == -1)
+ if (unmount(dir, MNT_UPDATE) == -1)
DPERROR(__func__);
-
- return ;
}
int