ASoC: Intel: cht: fix uninit variable warning
authorVinod Koul <vinod.koul@intel.com>
Fri, 8 Jul 2016 13:00:17 +0000 (18:30 +0530)
committerMark Brown <broonie@kernel.org>
Fri, 8 Jul 2016 14:36:45 +0000 (16:36 +0200)
commit5d554ea4f287665b839975ecb11bd29d49a5c9b5
tree43507758fefd9603f5f7b059fca1da518feea03a
parent07d5c17b80f67d1b2cc2c8243590e2abed4bd7ae
ASoC: Intel: cht: fix uninit variable warning

Kbuild bot reports that we might use dai_index uninitialized.

sound/soc/intel/boards/cht_bsw_rt5645.c:391:37: warning: 'dai_index' may be used uninitialized in this function [-Wmaybe-uninitialized]

Since it is theoretically possible, set it while initializing.

Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/boards/cht_bsw_rt5645.c