mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 04:43:53 +00:00
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:
parent
9d4cff787e
commit
e0853c9336
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue