lkml.org 
[lkml]   [2010]   [Jul]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Subject[PATCH] wm8988: remove a redundant snd_soc_unregister_codec call in wm8988_register
    From
    Date
    snd_soc_unregister_codec is called twice if snd_soc_register_dai fail.

    Signed-off-by: Axel Lin <axel.lin@gmail.com>
    ---
    sound/soc/codecs/wm8988.c | 1 -
    1 files changed, 0 insertions(+), 1 deletions(-)

    diff --git a/sound/soc/codecs/wm8988.c b/sound/soc/codecs/wm8988.c
    index 0417dae..19ad590 100644
    --- a/sound/soc/codecs/wm8988.c
    +++ b/sound/soc/codecs/wm8988.c
    @@ -885,7 +885,6 @@ static int wm8988_register(struct wm8988_priv *wm8988,
    ret = snd_soc_register_dai(&wm8988_dai);
    if (ret != 0) {
    dev_err(codec->dev, "Failed to register DAI: %d\n", ret);
    - snd_soc_unregister_codec(codec);
    goto err_codec;
    }

    --
    1.7.0.4




    \
     
     \ /
      Last update: 2010-07-14 13:09    [W:4.442 / U:0.016 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site