aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Johnston <markj@FreeBSD.org>2024-09-05 00:36:27 +0000
committerMark Johnston <markj@FreeBSD.org>2024-09-05 00:36:27 +0000
commitdc450b388bba182d0b3ce2f1a04c20acda7ff922 (patch)
treed57cc8897473cc4775d84827d6c8f87d086e677e
parent66fc442421f868b01bee4e299d7e3a4c4df37d21 (diff)
vmm: Remove more of vmmdev_open()
The softc pointer is now unused, just remove it. Reported by: se Fixes: 66fc442421f8 ("vmm: Remove an incorrect credential check in vmmdev_open()")
-rw-r--r--sys/dev/vmm/vmm_dev.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/sys/dev/vmm/vmm_dev.c b/sys/dev/vmm/vmm_dev.c
index 353b58dd8a2c..a43d642b3925 100644
--- a/sys/dev/vmm/vmm_dev.c
+++ b/sys/dev/vmm/vmm_dev.c
@@ -325,12 +325,8 @@ vm_set_register_set(struct vcpu *vcpu, unsigned int count, int *regnum,
static int
vmmdev_open(struct cdev *dev, int flags, int fmt, struct thread *td)
{
- struct vmmdev_softc *sc;
int error;
- sc = vmmdev_lookup2(dev);
- KASSERT(sc != NULL, ("%s: device not found", __func__));
-
/*
* A jail without vmm access shouldn't be able to access vmm device
* files at all, but check here just to be thorough.