regulator: wm831x-isink: Remove redundant error message
authorSachin Kamat <sachin.kamat@linaro.org>
Thu, 20 Feb 2014 08:53:21 +0000 (14:23 +0530)
committerMark Brown <broonie@linaro.org>
Thu, 20 Feb 2014 12:03:16 +0000 (21:03 +0900)
kzalloc prints its own OOM message upon failure.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/regulator/wm831x-isink.c

index 0339b886df5dbf2a6bde26111a0a4c6a60f58732..72e385e76a9d75df7146e0bb42589d32c034f28b 100644 (file)
@@ -165,10 +165,8 @@ static int wm831x_isink_probe(struct platform_device *pdev)
 
        isink = devm_kzalloc(&pdev->dev, sizeof(struct wm831x_isink),
                             GFP_KERNEL);
-       if (isink == NULL) {
-               dev_err(&pdev->dev, "Unable to allocate private data\n");
+       if (!isink)
                return -ENOMEM;
-       }
 
        isink->wm831x = wm831x;