summaryrefslogtreecommitdiffstats
path: root/drivers/gpio/gpio-da9055.c
diff options
context:
space:
mode:
authorVarka Bhadram2015-03-31 06:19:11 +0200
committerLinus Walleij2015-04-08 09:54:21 +0200
commitafeb7b45e96239f0bfa610dd40945786f5a9b164 (patch)
tree96ae1b9942dbc28854d22234af269d19169cd25a /drivers/gpio/gpio-da9055.c
parentgpio: arizona: drop owner assignment from platform_drivers (diff)
downloadkernel-qcow2-linux-afeb7b45e96239f0bfa610dd40945786f5a9b164.tar.gz
kernel-qcow2-linux-afeb7b45e96239f0bfa610dd40945786f5a9b164.tar.xz
kernel-qcow2-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-da9055.c')
-rw-r--r--drivers/gpio/gpio-da9055.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/gpio-da9055.c b/drivers/gpio/gpio-da9055.c
index b8d757036887..7227e6ed3cb9 100644
--- a/drivers/gpio/gpio-da9055.c
+++ b/drivers/gpio/gpio-da9055.c
@@ -146,7 +146,7 @@ static int da9055_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->da9055 = dev_get_drvdata(pdev->dev.parent);