There is no need to use array any more. No functional change.

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

View File

@ -296,7 +296,7 @@ static int
acpi_cpu_attach(device_t dev)
{
ACPI_BUFFER buf;
ACPI_OBJECT arg[1], *obj;
ACPI_OBJECT arg, *obj;
ACPI_OBJECT_LIST arglist;
struct pcpu *pcpu_data;
struct acpi_cpu_softc *sc;
@ -399,11 +399,11 @@ acpi_cpu_attach(device_t dev)
device_printf(dev, "_OSC returned status %#x\n", cap_set[0]);
}
else {
arglist.Pointer = arg;
arglist.Pointer = &arg;
arglist.Count = 1;
arg[0].Type = ACPI_TYPE_BUFFER;
arg[0].Buffer.Length = sizeof(cap_set);
arg[0].Buffer.Pointer = (uint8_t *)cap_set;
arg.Type = ACPI_TYPE_BUFFER;
arg.Buffer.Length = sizeof(cap_set);
arg.Buffer.Pointer = (uint8_t *)cap_set;
cap_set[0] = 1; /* revision */
cap_set[1] = 1; /* number of capabilities integers */
cap_set[2] = sc->cpu_features;