svn commit: r298380 - head/sys/dev/acpica

Jung-uk Kim jkim at FreeBSD.org
Wed Apr 20 21:30:57 UTC 2016


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


More information about the svn-src-head mailing list