Use SYSCTL_FOREACH in drm2

This was added recently. Use it to get the correct _FOREACH macro.

Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Andrew Turner 2022-10-05 10:24:13 +01:00
parent 9d4cff787e
commit e0853c9336

View file

@ -78,7 +78,7 @@ int drm_sysctl_init(struct drm_device *dev)
/* Find the next free slot under hw.dri */
i = 0;
SLIST_FOREACH(oid, SYSCTL_CHILDREN(drioid), oid_link) {
SYSCTL_FOREACH(oid, SYSCTL_CHILDREN(drioid), oid_link) {
if (i <= oid->oid_arg2)
i = oid->oid_arg2 + 1;
}