ASoC: Intel: Skylake: Fix substream dereference before check
authorVinod Koul <vinod.koul@intel.com>
Fri, 30 Oct 2015 15:04:20 +0000 (20:34 +0530)
committerMark Brown <broonie@kernel.org>
Mon, 16 Nov 2015 10:08:09 +0000 (10:08 +0000)
commitc7b2a44410a1029f1cee4ad0b86588c9a0f83a6c
treec8a407b5a531ab0b8a07506d7fa38e0bc3454686
parentb4fe965f4e949d0d965561801de89e90b673b65a
ASoC: Intel: Skylake: Fix substream dereference before check

Smatch warns that we dereferenced substream before check, so fix
this by initializing ebus after the check

sound/soc/intel/skylake/skl-pcm.c:802 skl_get_position()
        warn: variable dereferenced before check 'substream->runtime'

Reported by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Jeeja KP <jeeja.kp@intel.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/skylake/skl-pcm.c
This page took 0.051339 seconds and 5 git commands to generate.