Use B_SPINLOCK_INITIALIZER to initialize spinlock.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34014 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
a2e177e884
commit
ee0a622f83
@ -645,7 +645,7 @@ AcpiOsCreateLock(ACPI_SPINLOCK *outHandle)
|
||||
if (*outHandle == NULL)
|
||||
return AE_NO_MEMORY;
|
||||
|
||||
**outHandle = 0;
|
||||
**outHandle = B_SPINLOCK_INITIALIZER;
|
||||
return AE_OK;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user