Author: jkim Date: Wed Apr 20 21:30:56 2016 New Revision: 298380 URL: https://svnweb.freebsd.org/changeset/base/298380
Log: Prefer sizeof(*pointer) over sizeof(type). No funtional change. Modified: head/sys/dev/acpica/acpi.c Modified: head/sys/dev/acpica/acpi.c ============================================================================== --- head/sys/dev/acpica/acpi.c Wed Apr 20 21:26:59 2016 (r298379) +++ head/sys/dev/acpica/acpi.c Wed Apr 20 21:30:56 2016 (r298380) @@ -2497,7 +2497,7 @@ acpi_EvaluateOSC(ACPI_HANDLE handle, uin 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)); } _______________________________________________ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"