Skip to content

Commit 067d832

Browse files
committed
ASoC: mt8365: Remove unused variables
Silence compiler warnings by removing unused variables. Reported-by: Nathan Chancellor <nathan@kernel.org> Reviewed-by: Alexandre Mergnat <amergnat@baylibre.com> Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Tested-by: Nathan Chancellor <nathan@kernel.org> # build Signed-off-by: Mark Brown <broonie@kernel.org> Link: https://patch.msgid.link/20240907-asoc-fix-mt8365-build-v1-5-7ad0bac20161@kernel.org Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 63157d9 commit 067d832

2 files changed

Lines changed: 1 addition & 3 deletions

File tree

sound/soc/mediatek/mt8365/mt8365-afe-pcm.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -651,7 +651,6 @@ static int mt8365_afe_fe_hw_free(struct snd_pcm_substream *substream,
651651
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
652652
struct mt8365_afe_private *afe_priv = afe->platform_priv;
653653
int dai_id = snd_soc_rtd_to_cpu(rtd, 0)->id;
654-
struct mtk_base_afe_memif *memif = &afe->memif[dai_id];
655654
struct mt8365_fe_dai_data *fe_data = &afe_priv->fe_data[dai_id];
656655
int ret = 0;
657656

sound/soc/mediatek/mt8365/mt8365-mt6357.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -290,9 +290,8 @@ static int mt8365_mt6357_dev_probe(struct mtk_soc_card_data *soc_card_data, bool
290290
struct mtk_platform_card_data *card_data = soc_card_data->card_data;
291291
struct snd_soc_card *card = card_data->card;
292292
struct device *dev = card->dev;
293-
struct device_node *platform_node;
294293
struct mt8365_mt6357_priv *mach_priv;
295-
int i, ret;
294+
int ret;
296295

297296
card->dev = dev;
298297
ret = parse_dai_link_info(card);

0 commit comments

Comments
 (0)