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>
This commit is contained in:
parent
d82e78b0a5
commit
adcc9f2b06
|
@ -107,8 +107,7 @@ static void sprd_platform_compr_drain_notify(void *arg)
|
||||||
|
|
||||||
memset(stream->info_area, 0, sizeof(struct sprd_compr_playinfo));
|
memset(stream->info_area, 0, sizeof(struct sprd_compr_playinfo));
|
||||||
|
|
||||||
if (cstream)
|
snd_compr_drain_notify(cstream);
|
||||||
snd_compr_drain_notify(cstream);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void sprd_platform_compr_dma_complete(void *data)
|
static void sprd_platform_compr_dma_complete(void *data)
|
||||||
|
|
Loading…
Reference in New Issue