ASoC: topology: Fix a signedness bug in soc_tplg_dapm_widget_create()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 25 Sep 2019 11:06:24 +0000 (14:06 +0300)
committerMark Brown <broonie@kernel.org>
Thu, 26 Sep 2019 15:22:40 +0000 (08:22 -0700)
commit752c938a5c14b8cbf0ed3ffbfa637fb166255c3f
treefa6bb1e5da7c9344616675e4870cdfad45b5fc30
parent901e822b2e365dac4727e0ddffb444a2554b0a89
ASoC: topology: Fix a signedness bug in soc_tplg_dapm_widget_create()

The "template.id" variable is an enum and in this context GCC will
treat it as an unsigned int so it can never be less than zero.

Fixes: 8a9782346dcc ("ASoC: topology: Add topology core")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/20190925110624.GR3264@mwanda
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-topology.c