Skip to content

Commit d69f11e

Browse files
Muhammad Usama Anjumbroonie
authored andcommitted
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: 1bf6dbd ("ASoc: mediatek: mt8365: Add a specific soundcard for EVK") Signed-off-by: Muhammad Usama Anjum <usama.anjum@collabora.com> Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Link: https://patch.msgid.link/20240911123629.125686-1-usama.anjum@collabora.com Reviewed-by: Alexandre Mergnat <amergnat@baylibre.com> Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 32d5f79 commit d69f11e

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,8 +257,7 @@ static int mt8365_mt6357_gpio_probe(struct snd_soc_card *card)
257257
priv->pin_states[i] = pinctrl_lookup_state(priv->pinctrl,
258258
mt8365_mt6357_pin_str[i]);
259259
if (IS_ERR(priv->pin_states[i])) {
260-
ret = PTR_ERR(priv->pin_states[i]);
261-
dev_warn(card->dev, "No pin state for %s\n",
260+
dev_info(card->dev, "No pin state for %s\n",
262261
mt8365_mt6357_pin_str[i]);
263262
} else {
264263
ret = pinctrl_select_state(priv->pinctrl,

0 commit comments

Comments
 (0)