summaryrefslogtreecommitdiffstats
path: root/sys/fs/portalfs/portal_vfsops.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1994-10-10 07:55:48 +0000
committerphk <phk@FreeBSD.org>1994-10-10 07:55:48 +0000
commitc0f48e68d284829328ce49fd16a2b2eb6467434b (patch)
tree7554aaa733a10acfa4773a846448e6f66d2d6ee3 /sys/fs/portalfs/portal_vfsops.c
parent03a02ed1752db367223cc17d6465dcb08f262939 (diff)
downloadFreeBSD-src-c0f48e68d284829328ce49fd16a2b2eb6467434b.zip
FreeBSD-src-c0f48e68d284829328ce49fd16a2b2eb6467434b.tar.gz
Cosmetics. reduce the noise from gcc -Wall.
Diffstat (limited to 'sys/fs/portalfs/portal_vfsops.c')
-rw-r--r--sys/fs/portalfs/portal_vfsops.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/sys/fs/portalfs/portal_vfsops.c b/sys/fs/portalfs/portal_vfsops.c
index 9618ecb..39d54c2 100644
--- a/sys/fs/portalfs/portal_vfsops.c
+++ b/sys/fs/portalfs/portal_vfsops.c
@@ -35,7 +35,7 @@
*
* @(#)portal_vfsops.c 8.6 (Berkeley) 1/21/94
*
- * $Id: portal_vfsops.c,v 1.3 1994/09/22 19:38:17 wollman Exp $
+ * $Id: portal_vfsops.c,v 1.4 1994/09/23 11:01:58 davidg Exp $
*/
/*
@@ -94,10 +94,12 @@ portal_mount(mp, path, data, ndp, p)
if (mp->mnt_flag & MNT_UPDATE)
return (EOPNOTSUPP);
- if (error = copyin(data, (caddr_t) &args, sizeof(struct portal_args)))
+ error = copyin(data, (caddr_t) &args, sizeof(struct portal_args));
+ if (error)
return (error);
- if (error = getsock(p->p_fd, args.pa_socket, &fp))
+ error = getsock(p->p_fd, args.pa_socket, &fp);
+ if (error)
return (error);
so = (struct socket *) fp->f_data;
if (so->so_proto->pr_domain->dom_family != AF_UNIX)
@@ -177,7 +179,8 @@ portal_unmount(mp, mntflags, p)
#endif
if (rootvp->v_usecount > 1)
return (EBUSY);
- if (error = vflush(mp, rootvp, flags))
+ error = vflush(mp, rootvp, flags);
+ if (error)
return (error);
/*
OpenPOWER on IntegriCloud