From bed7ad9cd300b387eb2c92d54cac836a80fd0385 Mon Sep 17 00:00:00 2001 From: Nico Huber Date: Sat, 21 Mar 2020 19:09:45 +0100 Subject: [PATCH] drivers/intel/gma/acpi: Let the compiler initialize counters[] TEST=Booted ThinkPad X201s, backlight control still works. Change-Id: I8ff3493be4dc8d640a511358a5324eb73eb35db9 Signed-off-by: Nico Huber Reviewed-on: https://review.coreboot.org/c/coreboot/+/39729 Tested-by: build bot (Jenkins) Reviewed-by: Matt DeVillier Reviewed-by: Angel Pons --- src/drivers/intel/gma/acpi.c | 4 +--- 1 file changed, 1 insertion(+), 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");