Prefer sizeof(*pointer) over sizeof(type). No funtional change.
This commit is contained in:
parent
87f0a4bf1f
commit
e5f7701025
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=298380
@ -2497,7 +2497,7 @@ acpi_EvaluateOSC(ACPI_HANDLE handle, uint8_t *uuid, int revision, int count,
|
||||
arg[2].Type = ACPI_TYPE_INTEGER;
|
||||
arg[2].Integer.Value = count;
|
||||
arg[3].Type = ACPI_TYPE_BUFFER;
|
||||
arg[3].Buffer.Length = count * sizeof(uint32_t);
|
||||
arg[3].Buffer.Length = count * sizeof(*caps);
|
||||
arg[3].Buffer.Pointer = (uint8_t *)caps;
|
||||
return (AcpiEvaluateObject(handle, "_OSC", &arglist, NULL));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user