[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20240911123629.125686-1-usama.anjum@collabora.com>
Date: Wed, 11 Sep 2024 17:36:22 +0500
From: Muhammad Usama Anjum <usama.anjum@...labora.com>
To: Liam Girdwood <lgirdwood@...il.com>,
Mark Brown <broonie@...nel.org>,
Jaroslav Kysela <perex@...ex.cz>,
Takashi Iwai <tiwai@...e.com>,
Matthias Brugger <matthias.bgg@...il.com>,
AngeloGioacchino Del Regno <angelogioacchino.delregno@...labora.com>,
Muhammad Usama Anjum <usama.anjum@...labora.com>,
Nicolas Belin <nbelin@...libre.com>,
Alexandre Mergnat <amergnat@...libre.com>
Cc: kernel@...labora.com,
linux-sound@...r.kernel.org,
linux-kernel@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org,
linux-mediatek@...ts.infradead.org
Subject: [PATCH v2] ASoc: mediatek: mt8365: Remove unneeded assignment
The ret is being assigned, but not being used. Remove the assignment.
One of the reviewer mentioned that dev_warn should be replaced with
dev_info. Make this change as well.
Fixes: 1bf6dbd75f76 ("ASoc: mediatek: mt8365: Add a specific soundcard for EVK")
Signed-off-by: Muhammad Usama Anjum <usama.anjum@...labora.com>
---
Changes since v1:
- Remove assignment to ret and don't print it from dev_warn
- Change dev_warn to dev_info on request of reviewer
---
sound/soc/mediatek/mt8365/mt8365-mt6357.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/sound/soc/mediatek/mt8365/mt8365-mt6357.c b/sound/soc/mediatek/mt8365/mt8365-mt6357.c
index fef76118f8010..577f3b1e20a18 100644
--- a/sound/soc/mediatek/mt8365/mt8365-mt6357.c
+++ b/sound/soc/mediatek/mt8365/mt8365-mt6357.c
@@ -257,8 +257,7 @@ static int mt8365_mt6357_gpio_probe(struct snd_soc_card *card)
priv->pin_states[i] = pinctrl_lookup_state(priv->pinctrl,
mt8365_mt6357_pin_str[i]);
if (IS_ERR(priv->pin_states[i])) {
- ret = PTR_ERR(priv->pin_states[i]);
- dev_warn(card->dev, "No pin state for %s\n",
+ dev_info(card->dev, "No pin state for %s\n",
mt8365_mt6357_pin_str[i]);
} else {
ret = pinctrl_select_state(priv->pinctrl,
--
2.39.2
Powered by blists - more mailing lists