diff options
author | jkim <jkim@FreeBSD.org> | 2016-04-20 21:30:56 +0000 |
---|---|---|
committer | jkim <jkim@FreeBSD.org> | 2016-04-20 21:30:56 +0000 |
commit | 7cc967f0e00c8467ec7dc3d76556fbe5d10826ca (patch) | |
tree | ebaad1725f6b9d2c0fccf00572480a3cb7b6b251 | |
parent | 1bcda70984e3df18789eafc76f36545b1e1d5cd8 (diff) | |
download | FreeBSD-src-7cc967f0e00c8467ec7dc3d76556fbe5d10826ca.zip FreeBSD-src-7cc967f0e00c8467ec7dc3d76556fbe5d10826ca.tar.gz |
Prefer sizeof(*pointer) over sizeof(type). No funtional change.
-rw-r--r-- | sys/dev/acpica/acpi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/acpica/acpi.c b/sys/dev/acpica/acpi.c index c6ea082..285d9bb 100644 --- a/sys/dev/acpica/acpi.c +++ b/sys/dev/acpica/acpi.c @@ -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)); } |