git: dc450b388bba - main - vmm: Remove more of vmmdev_open()
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 05 Sep 2024 00:38:38 UTC
The branch main has been updated by markj:
URL: https://cgit.FreeBSD.org/src/commit/?id=dc450b388bba182d0b3ce2f1a04c20acda7ff922
commit dc450b388bba182d0b3ce2f1a04c20acda7ff922
Author: Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2024-09-05 00:36:27 +0000
Commit: Mark Johnston <markj@FreeBSD.org>
CommitDate: 2024-09-05 00:36:27 +0000
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()")
---
sys/dev/vmm/vmm_dev.c | 4 ----
1 file changed, 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.