summaryrefslogtreecommitdiffstats
path: root/sys/dev/softraid.c
diff options
context:
space:
mode:
authorvisa <visa@openbsd.org>2020-04-06 16:29:53 +0000
committervisa <visa@openbsd.org>2020-04-06 16:29:53 +0000
commitc15c02b3c95dd084f6531769489a80cfc67f9d65 (patch)
treee537b62f65e10611276274da65dfe2fc93caccd5 /sys/dev/softraid.c
parentSend a zero-length session identifier if TLSv1.3 is not enabled. (diff)
downloadwireguard-openbsd-c15c02b3c95dd084f6531769489a80cfc67f9d65.tar.xz
wireguard-openbsd-c15c02b3c95dd084f6531769489a80cfc67f9d65.zip
Remove redundant VOP_CLOSE() and vput(). The fail branch will close
the vnode because `open' is true. OK deraadt@, anton@
Diffstat (limited to 'sys/dev/softraid.c')
-rw-r--r--sys/dev/softraid.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/dev/softraid.c b/sys/dev/softraid.c
index 6ca8bbd19a6..8b3bc7e1fa1 100644
--- a/sys/dev/softraid.c
+++ b/sys/dev/softraid.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: softraid.c,v 1.399 2020/03/10 08:41:19 tobhe Exp $ */
+/* $OpenBSD: softraid.c,v 1.400 2020/04/06 16:29:53 visa Exp $ */
/*
* Copyright (c) 2007, 2008, 2009 Marco Peereboom <marco@peereboom.us>
* Copyright (c) 2008 Chris Kuethe <ckuethe@openbsd.org>
@@ -2846,8 +2846,6 @@ sr_hotspare(struct sr_softc *sc, dev_t dev)
NOCRED, curproc)) {
DNPRINTF(SR_D_META, "%s: sr_hotspare ioctl failed\n",
DEVNAME(sc));
- VOP_CLOSE(vn, FREAD | FWRITE, NOCRED, curproc);
- vput(vn);
goto fail;
}
if (label.d_partitions[part].p_fstype != FS_RAID) {