]> Git Repo - linux.git/commitdiff
ASoC: twl6040: Return -ENOMEM if create_singlethread_workqueue fails
authorAxel Lin <[email protected]>
Sat, 26 Mar 2011 07:53:58 +0000 (15:53 +0800)
committerLiam Girdwood <[email protected]>
Sat, 26 Mar 2011 15:36:56 +0000 (15:36 +0000)
Signed-off-by: Axel Lin <[email protected]>
Acked-by: Mark Brown <[email protected]>
Signed-off-by: Liam Girdwood <[email protected]>
sound/soc/codecs/twl6040.c

index 482fcdb59bfa57c3d82eaa002b3e23d8b5bf760d..255901c4460d32c2845686a916b28829402885bd 100644 (file)
@@ -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);
 
This page took 0.058381 seconds and 4 git commands to generate.