Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
[cascardo/linux.git] / drivers / gpio / gpio-da9052.c
index 389a4d2..2e9578e 100644 (file)
@@ -212,7 +212,7 @@ static int da9052_gpio_probe(struct platform_device *pdev)
        int ret;
 
        gpio = devm_kzalloc(&pdev->dev, sizeof(*gpio), GFP_KERNEL);
-       if (gpio == NULL)
+       if (!gpio)
                return -ENOMEM;
 
        gpio->da9052 = dev_get_drvdata(pdev->dev.parent);