]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ASoC: intel: skylake: Add missing break in skl_tplg_get_token()
authorTakashi Iwai <tiwai@suse.de>
Wed, 3 Oct 2018 17:31:44 +0000 (19:31 +0200)
committerMark Brown <broonie@kernel.org>
Thu, 4 Oct 2018 10:36:35 +0000 (11:36 +0100)
skl_tplg_get_token() misses a break in the big switch() block for
SKL_TKN_U8_CORE_ID entry.
Spotted nicely by -Wimplicit-fallthrough compiler option.

Fixes: 6277e83292a2 ("ASoC: Intel: Skylake: Parse vendor tokens to build module data")
Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/skylake/skl-topology.c

index 52a9915da0f5cccf2cf82d242960d5dc15bc1e58..cf8848b779dcc2a84a2c15a35d29ad49808a0692 100644 (file)
@@ -2460,6 +2460,7 @@ static int skl_tplg_get_token(struct device *dev,
 
        case SKL_TKN_U8_CORE_ID:
                mconfig->core_id = tkn_elem->value;
+               break;
 
        case SKL_TKN_U8_MOD_TYPE:
                mconfig->m_type = tkn_elem->value;