From c0f48e68d284829328ce49fd16a2b2eb6467434b Mon Sep 17 00:00:00 2001 From: phk Date: Mon, 10 Oct 1994 07:55:48 +0000 Subject: Cosmetics. reduce the noise from gcc -Wall. --- sys/miscfs/specfs/spec_vnops.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'sys/miscfs/specfs/spec_vnops.c') 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 @@ -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 -- cgit v1.1