gpio: lynxpoint: remove unnecessary OOM messages
[linux-2.6-block.git] / drivers / gpio / gpio-lynxpoint.c
index 9a82a9074a2cfb3a74a1c56592eaf680dee1fbef..2bea89b72508b8a54f7857c6ec3ca46e91c1c45e 100644 (file)
@@ -375,10 +375,8 @@ static int lp_gpio_probe(struct platform_device *pdev)
        int ret = -ENODEV;
 
        lg = devm_kzalloc(dev, sizeof(struct lp_gpio), GFP_KERNEL);
-       if (!lg) {
-               dev_err(dev, "can't allocate lp_gpio chip data\n");
+       if (!lg)
                return -ENOMEM;
-       }
 
        lg->pdev = pdev;
        platform_set_drvdata(pdev, lg);