Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 5 Sep 2024 00:38:38 GMT
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: dc450b388bba - main - vmm: Remove more of vmmdev_open()
Message-ID:  <202409050038.4850cc49010422@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202409050038.4850cc49010422>