aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Turner <andrew@FreeBSD.org>2022-10-05 09:27:48 +0000
committerAndrew Turner <andrew@FreeBSD.org>2022-10-05 09:27:48 +0000
commitfbc9f1b2d6cf90c02b918671fb7791cf36472cfd (patch)
treeb0d8ce9506abe6c5f73d61537d475058ba11ad0d
parente0853c9336616e4ca4ff41aab0f8ad91bb75fd42 (diff)
downloadsrc-fbc9f1b2d6cf90c02b918671fb7791cf36472cfd.tar.gz
src-fbc9f1b2d6cf90c02b918671fb7791cf36472cfd.zip
Remove an extra argument to SYSCTL_FOREACH
This was missed in e0853c933661. Sponsored by: The FreeBSD Foundation
-rw-r--r--sys/dev/drm2/drm_sysctl.c2
1 files changed, 1 insertions, 1 deletions
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;
}