Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit adcc9f2b authored by Baolin Wang's avatar Baolin Wang Committed by Mark Brown
Browse files

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: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarBaolin Wang <baolin.wang@linaro.org>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent d82e78b0
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -107,7 +107,6 @@ static void sprd_platform_compr_drain_notify(void *arg)

	memset(stream->info_area, 0, sizeof(struct sprd_compr_playinfo));

	if (cstream)
	snd_compr_drain_notify(cstream);
}