diff options
author | phk <phk@FreeBSD.org> | 1994-10-10 07:55:48 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1994-10-10 07:55:48 +0000 |
commit | c0f48e68d284829328ce49fd16a2b2eb6467434b (patch) | |
tree | 7554aaa733a10acfa4773a846448e6f66d2d6ee3 /sys/miscfs/specfs/spec_vnops.c | |
parent | 03a02ed1752db367223cc17d6465dcb08f262939 (diff) | |
download | FreeBSD-src-c0f48e68d284829328ce49fd16a2b2eb6467434b.zip FreeBSD-src-c0f48e68d284829328ce49fd16a2b2eb6467434b.tar.gz |
Cosmetics. reduce the noise from gcc -Wall.
Diffstat (limited to 'sys/miscfs/specfs/spec_vnops.c')
-rw-r--r-- | sys/miscfs/specfs/spec_vnops.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/sys/miscfs/specfs/spec_vnops.c b/sys/miscfs/specfs/spec_vnops.c index 357e785..9121e25 100644 --- a/sys/miscfs/specfs/spec_vnops.c +++ b/sys/miscfs/specfs/spec_vnops.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)spec_vnops.c 8.6 (Berkeley) 4/9/94 - * $Id: spec_vnops.c,v 1.5 1994/09/21 03:47:09 wollman Exp $ + * $Id: spec_vnops.c,v 1.6 1994/10/06 21:06:46 davidg Exp $ */ #include <sys/param.h> @@ -196,9 +196,12 @@ spec_open(ap) * Do not allow opens of block devices that are * currently mounted. */ - if (error = vfs_mountedon(vp)) + error = vfs_mountedon(vp); + if (error) return (error); return ((*bdevsw[maj].d_open)(dev, ap->a_mode, S_IFBLK, ap->a_p)); + default: + break; } return (0); } @@ -589,7 +592,8 @@ spec_close(ap) * we must invalidate any in core blocks, so that * we can, for instance, change floppy disks. */ - if (error = vinvalbuf(vp, V_SAVE, ap->a_cred, ap->a_p, 0, 0)) + error = vinvalbuf(vp, V_SAVE, ap->a_cred, ap->a_p, 0, 0); + if (error) return (error); /* * We do not want to really close the device if it |