summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/drivers/intel/gma/acpi.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/drivers/intel/gma/acpi.c b/src/drivers/intel/gma/acpi.c
index 3ec8527e6f..677414612a 100644
--- a/src/drivers/intel/gma/acpi.c
+++ b/src/drivers/intel/gma/acpi.c
@@ -22,9 +22,7 @@ drivers_intel_gma_displays_ssdt_generate(const struct i915_gpu_controller_info *
{
size_t i;
const char *names[] = { "UNK", "VGA", "TV", "DVI", "LCD" };
- int counters[ARRAY_SIZE(names)];
-
- memset(counters, 0, sizeof(counters));
+ int counters[ARRAY_SIZE(names)] = { 0 };
acpigen_write_scope("\\_SB.PCI0.GFX0");