coreboot-kgpe-d16/src/soc/intel/skylake
Martin Roth 5d6929b1d7 intel/skylake: Fix uninitialized variable warning
I don't think the warning is valid, because we already verify
that num_channels is 2 or 4 as soon as we enter the function.
Adding the default case makes the compiler happy.

Fixes warning:
src/soc/intel/skylake/nhlt/dmic.c: In function 'nhlt_soc_add_dmic_array':
src/soc/intel/skylake/nhlt/dmic.c💯2: error: 'formats' may be used
uninitialized in this function [-Werror=maybe-uninitialized]
return nhlt_endpoint_add_formats(endp, formats, num_formats);
^

Change-Id: Idc22c8478ff666af8915d780d7553909c3163690
Signed-off-by: Martin Roth <martinroth@google.com>
Reviewed-on: https://review.coreboot.org/13021
Tested-by: build bot (Jenkins)
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
2016-01-16 21:03:30 +01:00
..
acpi intel/skylake: Add kconfig option to skip Native SD Controller 2016-01-16 11:59:40 +01:00
bootblock intel/skylake: Remove check for Microcode loaded by ME 2016-01-12 22:24:09 +01:00
include/soc intel/skylake: Add VrConfig UPD parameters from coreboot 2016-01-16 11:58:31 +01:00
nhlt intel/skylake: Fix uninitialized variable warning 2016-01-16 21:03:30 +01:00
romstage intel/skylake: Update UPD parameters as per FSP 1.8.0 2016-01-15 20:40:05 +01:00
acpi.c x86 acpi: remove ALIGN_CURRENT macro 2015-12-15 20:12:01 +01:00
chip.c intel/skylake: Add VrConfig UPD parameters from coreboot 2016-01-16 11:58:31 +01:00
chip.h intel/skylake: Add VrConfig UPD parameters from coreboot 2016-01-16 11:58:31 +01:00
cpu.c skylake: Set Pkg Power clamping bit in Power Limit MSR 2015-11-05 17:39:46 +01:00
cpu_info.c tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
elog.c tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
finalize.c intel/skylake: More UPD params are added for PCH policy in FSP 2016-01-15 20:40:14 +01:00
flash_controller.c intel/skylake: Fix flash_controller.c compilation 2015-11-20 20:22:34 +01:00
gpio.c Skylake: Print GPIO MMIO base and pad config using gpio_debug token 2015-09-10 09:43:37 +00:00
igd.c x86 acpi: remove ALIGN_CURRENT macro 2015-12-15 20:12:01 +01:00
Kconfig intel/skylake: Add kconfig option to skip Native SD Controller 2016-01-16 11:59:40 +01:00
lpc.c tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
Makefile.inc intel/skylake: add nhlt support 2016-01-15 11:50:25 +01:00
memmap.c tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
monotonic_timer.c tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
pch.c tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
pcie.c tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
pcr.c intel/skylake: Init variable so GCC knows it's set 2016-01-15 22:41:11 +01:00
pei_data.c tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
pmc.c intel/skylake: ensure the RTC time is set 2015-11-13 00:52:54 +01:00
pmutil.c tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
ramstage.c tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
smbus.c tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
smbus_common.c tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
smi.c tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
smihandler.c Correct some common spelling mistakes 2016-01-07 22:57:02 +01:00
smmrelocate.c tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
systemagent.c tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
tsc_freq.c tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
uart.c tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
uart_debug.c tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
xhci.c tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00