Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/cooloney...
[cascardo/linux.git] / drivers / leds / leds-sunfire.c
index 388632d..0b8cc4a 100644 (file)
@@ -135,10 +135,8 @@ static int sunfire_led_generic_probe(struct platform_device *pdev,
        }
 
        p = devm_kzalloc(&pdev->dev, sizeof(*p), GFP_KERNEL);
-       if (!p) {
-               dev_err(&pdev->dev, "Could not allocate struct sunfire_drvdata\n");
+       if (!p)
                return -ENOMEM;
-       }
 
        for (i = 0; i < NUM_LEDS_PER_BOARD; i++) {
                struct led_classdev *lp = &p->leds[i].led_cdev;