Skip to contentSkip to conversation

ASoC: twl6040: Return -ENOMEM if create_singlethread_workqueue fails

PATCH Applied Axel Lin 3 participants 3 messages Mar 26, 2011

Subsystems (2)
lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH 1/1 ASoC: twl6040: Return -ENOMEM if create_singlethread_workqueue fails

---
 sound/soc/codecs/twl6040.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
sound/soc/codecs/twl6040.c +3 -1
index 482fcdb..255901c 100644
@@ -1629,8 +1629,10 @@ static int twl6040_probe(struct snd_soc_codec *codec)
 	priv->naudint = naudint;
 	priv->workqueue = create_singlethread_workqueue("twl6040-codec");
 
-	if (!priv->workqueue)
+	if (!priv->workqueue) {
+		ret = -ENOMEM;
 		goto work_err;
+	}
 
 	INIT_DELAYED_WORK(&priv->delayed_work, twl6040_accessory_work);
 
Signature · 1 line
1.7.1