diff options
author | Varka Bhadram <varkabhadram@gmail.com> | 2015-03-31 06:19:11 +0200 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2015-04-08 09:54:21 +0200 |
commit | afeb7b45e96239f0bfa610dd40945786f5a9b164 (patch) | |
tree | 96ae1b9942dbc28854d22234af269d19169cd25a /drivers/gpio/gpio-adp5588.c | |
parent | gpio: arizona: drop owner assignment from platform_drivers (diff) | |
download | linux-afeb7b45e96239f0bfa610dd40945786f5a9b164.tar.xz 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-adp5588.c')
-rw-r--r-- | drivers/gpio/gpio-adp5588.c | 4 |
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; |