gpio: use (!foo) instead of (foo == NULL)
[firefly-linux-kernel-4.4.55.git] / drivers / gpio / gpio-arizona.c
index ab350383660c3e4270b0112ca69f445eebbfe8d7..eb5a0ce49fa59ecc0c8486a40d7a2d78d7b998aa 100644 (file)
@@ -103,7 +103,7 @@ static int arizona_gpio_probe(struct platform_device *pdev)
 
        arizona_gpio = devm_kzalloc(&pdev->dev, sizeof(*arizona_gpio),
                                    GFP_KERNEL);
-       if (arizona_gpio == NULL)
+       if (!arizona_gpio)
                return -ENOMEM;
 
        arizona_gpio->arizona = arizona;