Prefer sizeof(*pointer) over sizeof(type). No funtional change.

This commit is contained in:
Jung-uk Kim 2016-04-20 21:30:56 +00:00
parent 87f0a4bf1f
commit e5f7701025
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=298380

View File

@ -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));
}