]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
regulator: pbias: remove unnecessary OOM messages
authorJingoo Han <jg1.han@samsung.com>
Mon, 2 Jun 2014 06:30:44 +0000 (15:30 +0900)
committerMark Brown <broonie@linaro.org>
Mon, 2 Jun 2014 14:14:51 +0000 (15:14 +0100)
The site-specific OOM messages are unnecessary, because they
duplicate the MM subsystem generic OOM message.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/regulator/pbias-regulator.c

index 708ddbb83e29f0578b422ba2dd1175f51fd31bb3..6d02d68dfb4647696027fd54d060203fa26f5480 100644 (file)
@@ -122,10 +122,8 @@ static int pbias_regulator_probe(struct platform_device *pdev)
 
        drvdata = devm_kzalloc(&pdev->dev, sizeof(struct pbias_regulator_data)
                               * count, GFP_KERNEL);
-       if (drvdata == NULL) {
-               dev_err(&pdev->dev, "Failed to allocate device data\n");
+       if (!drvdata)
                return -ENOMEM;
-       }
 
        syscon = syscon_regmap_lookup_by_phandle(np, "syscon");
        if (IS_ERR(syscon))