Skip to contentSkip to conversation

ASoC: dapm: Fix return value in snd_soc_dapm_new_control()

PATCH In review Dimitris Papastamos 2 participants 2 messages Aug 23, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ASoC: dapm: Fix return value in snd_soc_dapm_new_control()

---
 sound/soc/soc-dapm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/soc-dapm.c +1 -1
index 99aac65..90b8fb9 100644
@@ -2884,7 +2884,7 @@ snd_soc_dapm_new_control(struct snd_soc_dapm_context *dapm,
 			ret = PTR_ERR(w->priv);
 			dev_err(dapm->dev, "Failed to request %s: %d\n",
 				w->name, ret);
-			return ret;
+			return NULL;
 		}
 		break;
 	default:
Signature · 1 line
1.7.12