lkml.org 
[lkml]   [2010]   [Jul]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 13/15] sound/soc: davinci: check kzalloc() result (typo)
    Date
    The code checks 'davinci_vc' after kzalloc() and do not checks
    'davinci_vcif_dev' that kzalloc() result is assigned to. It seems that
    it is a typo (autocompletion?).

    Signed-off-by: Kulikov Vasiliy <segooon@gmail.com>
    ---
    sound/soc/davinci/davinci-vcif.c | 2 +-
    1 files changed, 1 insertions(+), 1 deletions(-)

    diff --git a/sound/soc/davinci/davinci-vcif.c b/sound/soc/davinci/davinci-vcif.c
    index 9aa980d..4867853 100644
    --- a/sound/soc/davinci/davinci-vcif.c
    +++ b/sound/soc/davinci/davinci-vcif.c
    @@ -203,7 +203,7 @@ static int davinci_vcif_probe(struct platform_device *pdev)
    int ret;

    davinci_vcif_dev = kzalloc(sizeof(struct davinci_vcif_dev), GFP_KERNEL);
    - if (!davinci_vc) {
    + if (!davinci_vcif_dev) {
    dev_dbg(&pdev->dev,
    "could not allocate memory for private data\n");
    return -ENOMEM;
    --
    1.7.0.4


    \
     
     \ /
      Last update: 2010-07-16 18:19    [W:0.020 / U:31.404 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site