Merge tag 'pci-v3.18-fixes-4' of git://git.kernel.org/pub/scm/linux/kernel/git/helgaa...
[deliverable/linux.git] / drivers / leds / leds-da9052.c
index 01486adc7f8ba969502a3ee3e13004da439d6c01..e4da1f460ac58bddc8183314336e7031bb261623 100644 (file)
@@ -126,8 +126,7 @@ static int da9052_led_probe(struct platform_device *pdev)
        led = devm_kzalloc(&pdev->dev,
                           sizeof(struct da9052_led) * pled->num_leds,
                           GFP_KERNEL);
-       if (led == NULL) {
-               dev_err(&pdev->dev, "Failed to alloc memory\n");
+       if (!led) {
                error = -ENOMEM;
                goto err;
        }
This page took 0.028392 seconds and 5 git commands to generate.