summaryrefslogtreecommitdiffstats
path: root/sound/soc/sof/mediatek/mt8195/mt8195.c
diff options
context:
space:
mode:
authorYC Hung <yc.hung@mediatek.com>2022-12-15 14:10:46 +0800
committerMark Brown <broonie@kernel.org>2022-12-25 23:33:24 +0000
commit3f58ff6b53c11773b1bd564082fae37d48e0cc40 (patch)
tree1fbbaea0329d401caefc21ceb78dec527cd7879d /sound/soc/sof/mediatek/mt8195/mt8195.c
parent8a0eb06e0c9a613fce989e9d94de3f290b81e356 (diff)
downloadlinux-stable-3f58ff6b53c11773b1bd564082fae37d48e0cc40.tar.gz
linux-stable-3f58ff6b53c11773b1bd564082fae37d48e0cc40.tar.bz2
linux-stable-3f58ff6b53c11773b1bd564082fae37d48e0cc40.zip
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>
Diffstat (limited to 'sound/soc/sof/mediatek/mt8195/mt8195.c')
-rw-r--r--sound/soc/sof/mediatek/mt8195/mt8195.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/sound/soc/sof/mediatek/mt8195/mt8195.c b/sound/soc/sof/mediatek/mt8195/mt8195.c
index 3c81e84fcecf..7c831e18483c 100644
--- a/sound/soc/sof/mediatek/mt8195/mt8195.c
+++ b/sound/soc/sof/mediatek/mt8195/mt8195.c
@@ -215,11 +215,6 @@ static int platform_parse_resource(struct platform_device *pdev, void *data)
adsp->pa_sram = (phys_addr_t)mmio->start;
adsp->sramsize = resource_size(mmio);
- if (adsp->sramsize < TOTAL_SIZE_SHARED_SRAM_FROM_TAIL) {
- dev_err(dev, "adsp SRAM(%#x) is not enough for share\n",
- adsp->sramsize);
- return -EINVAL;
- }
dev_dbg(dev, "sram pbase=%pa,%#x\n", &adsp->pa_sram, adsp->sramsize);