coreboot-kgpe-d16/src/soc/intel
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
..
baytrail ACPI: Fix IASL Warning about unused method for GBUF check 2015-12-10 16:30:50 +01:00
braswell soc/braswell: Add CPUID for D0 stepping 2016-01-14 23:09:47 +01:00
broadwell soc/intel/broadwell: Add back support for EHCI debug setup 2015-12-27 17:45:06 +01:00
common tree: drop last paragraph of GPL copyright header from new files 2016-01-13 20:35:40 +01:00
fsp_baytrail fsp_baytrail: Add additional PCI space above 4GB 2016-01-08 02:44:15 +01:00
skylake intel/skylake: Fix uninitialized variable warning 2016-01-16 21:03:30 +01:00