ASoC: SOF: mediatek: mt8195: remove a redundant comparison of sram
authorYC Hung <yc.hung@mediatek.com>
Thu, 15 Dec 2022 06:10:46 +0000 (14:10 +0800)
committerMark Brown <broonie@kernel.org>
Sun, 25 Dec 2022 23:33:24 +0000 (23:33 +0000)
commit3f58ff6b53c11773b1bd564082fae37d48e0cc40
tree1fbbaea0329d401caefc21ceb78dec527cd7879d
parent8a0eb06e0c9a613fce989e9d94de3f290b81e356
ASoC: SOF: mediatek: mt8195: remove a redundant comparison of sram

DSP SRAM is not used for audio shared buffer between host and DSP so
TOTAL_SIZE_SHARED_SRAM_FROM_TAIL is zero. Remove the definition and
redundant comparison to fix coverity "unsigned compared against 0".

Signed-off-by: YC Hung <yc.hung@mediatek.com>
Reviewed-by: AngeloGioacchino Del Regno <angeloigoacchino.delregno@collabora.com>
Link: https://lore.kernel.org/r/20221215061046.16934-1-yc.hung@mediatek.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/mediatek/mt8195/mt8195.c
sound/soc/sof/mediatek/mt8195/mt8195.h