mfd: davinci_voicecodec: Remove pointless 'out of memory' error message
authorLee Jones <lee.jones@linaro.org>
Wed, 28 Oct 2015 16:54:29 +0000 (16:54 +0000)
committerLee Jones <lee.jones@linaro.org>
Thu, 14 Jan 2016 08:44:05 +0000 (08:44 +0000)
WARNING: Possible unnecessary 'out of memory' message
+       if (!davinci_vc) {
+               dev_dbg(&pdev->dev,

total: 0 errors, 1 warnings, 154 lines checked

Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/davinci_voicecodec.c

index 9bbc642a7b9db5bc53eb383db667abe399b2959f..dff2f19296b881801a00afde363a53acf939b633 100644 (file)
@@ -47,11 +47,8 @@ static int __init davinci_vc_probe(struct platform_device *pdev)
 
        davinci_vc = devm_kzalloc(&pdev->dev,
                                  sizeof(struct davinci_vc), GFP_KERNEL);
-       if (!davinci_vc) {
-               dev_dbg(&pdev->dev,
-                           "could not allocate memory for private data\n");
+       if (!davinci_vc)
                return -ENOMEM;
-       }
 
        davinci_vc->clk = devm_clk_get(&pdev->dev, NULL);
        if (IS_ERR(davinci_vc->clk)) {