summaryrefslogtreecommitdiff
path: root/drivers/gpio/gpio-adp5588.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-adp5588.c
parent4878b46679f5b0ec86cc6ff48f4edb8a54e2a4d0 (diff)
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-adp5588.c')
-rw-r--r--drivers/gpio/gpio-adp5588.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpio/gpio-adp5588.c b/drivers/gpio/gpio-adp5588.c
index 0de8c7008122..c90273dac289 100644
--- a/drivers/gpio/gpio-adp5588.c
+++ b/drivers/gpio/gpio-adp5588.c
@@ -367,7 +367,7 @@ static int adp5588_gpio_probe(struct i2c_client *client,
struct gpio_chip *gc;
int ret, i, revid;
- if (pdata == NULL) {
+ if (!pdata) {
dev_err(&client->dev, "missing platform data\n");
return -ENODEV;
}
@@ -379,7 +379,7 @@ static int adp5588_gpio_probe(struct i2c_client *client,
}
dev = devm_kzalloc(&client->dev, sizeof(*dev), GFP_KERNEL);
- if (dev == NULL)
+ if (!dev)
return -ENOMEM;
dev->client = client;