ASoC: sprd: Fix the smatch warning
authorBaolin Wang <baolin.wang@linaro.org>
Wed, 3 Apr 2019 07:47:55 +0000 (00:47 -0700)
committerMark Brown <broonie@kernel.org>
Thu, 4 Apr 2019 05:51:16 +0000 (12:51 +0700)
commitadcc9f2b064e60f569979fb1de1f158e8bed8a6d
tree1566185c81ad338e2429a57c67831a3790338fe4
parentd82e78b0a578a712629cdb6cb7bfc66fb3215306
ASoC: sprd: Fix the smatch warning

Remove the unnecessary validation of the 'cstream' variable to fix
below smatch warning:

sprd_platform_compr_drain_notify() warn: variable dereferenced
before check 'cstream' (see line 105)

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Baolin Wang <baolin.wang@linaro.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sprd/sprd-pcm-compress.c