Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 Mar 2023 18:54:05 GMT
From:      Andrew Turner <andrew@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 4ec0ecb2ad69 - releng/13.2 - Remove an extra argument to SYSCTL_FOREACH
Message-ID:  <202303021854.322Is5LY099931@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch releng/13.2 has been updated by andrew:

URL: https://cgit.FreeBSD.org/src/commit/?id=4ec0ecb2ad69f461f59e47070229bfd86794e969

commit 4ec0ecb2ad69f461f59e47070229bfd86794e969
Author:     Andrew Turner <andrew@FreeBSD.org>
AuthorDate: 2022-10-05 09:27:48 +0000
Commit:     Andrew Turner <andrew@FreeBSD.org>
CommitDate: 2023-03-02 18:29:50 +0000

    Remove an extra argument to SYSCTL_FOREACH
    
    This was missed in e0853c933661.
    
    Approved by:    re (cperciva, delphij)
    Sponsored by:   The FreeBSD Foundation
    
    (cherry picked from commit fbc9f1b2d6cf90c02b918671fb7791cf36472cfd)
    (cherry picked from commit f36ca798c42960383e0ff9612e56eb20c796cf04)
---
 sys/dev/drm2/drm_sysctl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/dev/drm2/drm_sysctl.c b/sys/dev/drm2/drm_sysctl.c
index 2879f2df1220..bf3a1c4f80c6 100644
--- a/sys/dev/drm2/drm_sysctl.c
+++ b/sys/dev/drm2/drm_sysctl.c
@@ -78,7 +78,7 @@ int drm_sysctl_init(struct drm_device *dev)
 
 	/* Find the next free slot under hw.dri */
 	i = 0;
-	SYSCTL_FOREACH(oid, SYSCTL_CHILDREN(drioid), oid_link) {
+	SYSCTL_FOREACH(oid, SYSCTL_CHILDREN(drioid)) {
 		if (i <= oid->oid_arg2)
 			i = oid->oid_arg2 + 1;
 	}



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