]> git.karo-electronics.de Git - linux-beck.git/commit
ASoC: rt5514: Fix the issue that the variable dereferenced before checking
authorOder Chiou <oder_chiou@realtek.com>
Fri, 17 Jun 2016 03:02:23 +0000 (11:02 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 22 Jun 2016 15:02:04 +0000 (16:02 +0100)
commitb63d4d13ac7b8f947407a7eb44fdc40fadc8c5b8
tree47a4c3859311bb7def87e06469ea59c084257281
parent6eebf35b0e4a02248f7dba5d1719c6896afe41ba
ASoC: rt5514: Fix the issue that the variable dereferenced before checking

The patch fixes the issue that variable dereferenced before checking
'rt5514_dsp->substream'. Move the assignment to after the variable
checking of 'rt5514_dsp->substream'.

Signed-off-by: Oder Chiou <oder_chiou@realtek.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/rt5514-spi.c