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>
This commit is contained in:
@@ -651,7 +651,6 @@ static int mt8365_afe_fe_hw_free(struct snd_pcm_substream *substream,
|
||||
struct mtk_base_afe *afe = snd_soc_dai_get_drvdata(dai);
|
||||
struct mt8365_afe_private *afe_priv = afe->platform_priv;
|
||||
int dai_id = snd_soc_rtd_to_cpu(rtd, 0)->id;
|
||||
struct mtk_base_afe_memif *memif = &afe->memif[dai_id];
|
||||
struct mt8365_fe_dai_data *fe_data = &afe_priv->fe_data[dai_id];
|
||||
int ret = 0;
|
||||
|
||||
|
||||
@@ -290,9 +290,8 @@ static int mt8365_mt6357_dev_probe(struct mtk_soc_card_data *soc_card_data, bool
|
||||
struct mtk_platform_card_data *card_data = soc_card_data->card_data;
|
||||
struct snd_soc_card *card = card_data->card;
|
||||
struct device *dev = card->dev;
|
||||
struct device_node *platform_node;
|
||||
struct mt8365_mt6357_priv *mach_priv;
|
||||
int i, ret;
|
||||
int ret;
|
||||
|
||||
card->dev = dev;
|
||||
ret = parse_dai_link_info(card);
|
||||
|
||||
Reference in New Issue
Block a user