summaryrefslogtreecommitdiffstats
path: root/drivers/gpio/gpio-da9052.c
diff options
context:
space:
mode:
authorVarka Bhadram <varkabhadram@gmail.com>2015-03-31 09:49:11 +0530
committerLinus Walleij <linus.walleij@linaro.org>2015-04-08 09:54:21 +0200
commitafeb7b45e96239f0bfa610dd40945786f5a9b164 (patch)
tree96ae1b9942dbc28854d22234af269d19169cd25a /drivers/gpio/gpio-da9052.c
parent4878b46679f5b0ec86cc6ff48f4edb8a54e2a4d0 (diff)
downloadlinux-afeb7b45e96239f0bfa610dd40945786f5a9b164.tar.gz
linux-afeb7b45e96239f0bfa610dd40945786f5a9b164.tar.bz2
linux-afeb7b45e96239f0bfa610dd40945786f5a9b164.zip
gpio: use (!foo) instead of (foo == NULL)
Signed-off-by: Varka Bhadram <varkab@cdac.in> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio/gpio-da9052.c')
-rw-r--r--drivers/gpio/gpio-da9052.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/gpio-da9052.c b/drivers/gpio/gpio-da9052.c
index 389a4d2a4926..2e9578ec0ca1 100644
--- a/drivers/gpio/gpio-da9052.c
+++ b/drivers/gpio/gpio-da9052.c
@@ -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);