From nobody Thu Sep 05 00:38:38 2024 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4WzgTC2GwZz5W7wV; Thu, 05 Sep 2024 00:38:39 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WzgTB3pmKz4MHH; Thu, 5 Sep 2024 00:38:38 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1725496718; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=WBmPLErXm0TcCt1emjg5+Gd0HOWtjb+JxYC04mevT9c=; b=OI6CrkN4ZVfj5hc4TqucrPSF2gpqMhS8hFkJ7EzWfBunSsC6AX2LN9wxEdobW/JqjFQls5 V1EN7+ASZAdVJO5R841YMovM/AZ8sduLwXqUOoFcNLGF+Iuqkc/zKxuiSUd4exXSDa0uG3 KQ274r+NLrM3FD6F4ksBzwJJ5nogBlLxddQrCGMQlnqMAvHc2ncYRXawn36NCu9V05FD21 it4Sfn82I64IpxkN3bro2K92P200olJNHccOffAiuTtYkGDcxIMc7nZ6GFDtbbruNJI7cn ww9kcdwUV788BA7UqzeNRanrFWIgERp0rFUDr3UwRX4Cyn+RS27ayIhKH7IZ/w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1725496718; a=rsa-sha256; cv=none; b=qyj8EjOTJTB+K8RTtNvBJZ8KblAB499L1AX74f7xaTr1DG+Nvazqat34jB8t1hJvWM494w J7nBIzoYJVAVJUVpmIyH2LFtRN0d+aWa+lANOjVVN6waPBAGr7X1rtome7Ws5O9MUkHLdV SZ55sKt1q93YQMPvhQqKEWuIwJOpMJ5HmQrOo3zT5d5i8TQuNvOwvn5CoQYdLd9LQuun/L Q8Ycs/YSEXVyn7VVuMJPAdojKUFH9HCGBCX8840PAR0Vrv2zmXO07PI7gyxXOVwUMrn4d+ BWwUl3u6vLyfnMXYnKbkJNQ+botRddlRSNSkMcxC5eLTIkhumFwrK7O3mHTlmw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1725496718; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=WBmPLErXm0TcCt1emjg5+Gd0HOWtjb+JxYC04mevT9c=; b=FfUCD4Cevl1Us9LMbMlUAwyOWHJKZn+AmCXh0O9bzQuVpfoMfiSdOWCyHwrxIQQm7NKymS L0DXdRI11aXIBR2Olsomr+HwH7CochflLqMTtyRLAHJZB6a4jz+HJA6lR+Fx9enODQv1Kp kTF5VTu59c9w2HgFQ68VZGYrSKZE1Ojocx5bDscSlJzqhSN6iS6v8g3GPrcCUjFgSQgNE3 IVpmQtUw9CmpCcNkDBV9+HE4GvQlNanbro88PtFTIE00xSjWZVO5UcsmICtpRPpLIhtkQb DHikWIJiIwPmUn/c/xAyL3vbDXqI3NDi9b5OS74b9Fgk3dF/Hck1/L9fxNcV7Q== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4WzgTB1w0TzmQd; Thu, 5 Sep 2024 00:38:38 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4850cc68010424; Thu, 5 Sep 2024 00:38:38 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4850cc49010422; Thu, 5 Sep 2024 00:38:38 GMT (envelope-from git) Date: Thu, 5 Sep 2024 00:38:38 GMT Message-Id: <202409050038.4850cc49010422@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mark Johnston Subject: git: dc450b388bba - main - vmm: Remove more of vmmdev_open() List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: markj X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: dc450b388bba182d0b3ce2f1a04c20acda7ff922 Auto-Submitted: auto-generated The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=dc450b388bba182d0b3ce2f1a04c20acda7ff922 commit dc450b388bba182d0b3ce2f1a04c20acda7ff922 Author: Mark Johnston AuthorDate: 2024-09-05 00:36:27 +0000 Commit: Mark Johnston 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.