commit | afeb7b45e96239f0bfa610dd40945786f5a9b164 | [log] [tgz] |
---|---|---|
author | Varka Bhadram <varkabhadram@gmail.com> | Tue Mar 31 09:49:11 2015 +0530 |
committer | Linus Walleij <linus.walleij@linaro.org> | Wed Apr 08 09:54:21 2015 +0200 |
tree | 96ae1b9942dbc28854d22234af269d19169cd25a | |
parent | 4878b46679f5b0ec86cc6ff48f4edb8a54e2a4d0 [diff] [blame] |
gpio: use (!foo) instead of (foo == NULL) Signed-off-by: Varka Bhadram <varkab@cdac.in> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
diff --git a/drivers/gpio/gpio-kempld.c b/drivers/gpio/gpio-kempld.c index 443518f..6b8115f 100644 --- a/drivers/gpio/gpio-kempld.c +++ b/drivers/gpio/gpio-kempld.c
@@ -156,7 +156,7 @@ } gpio = devm_kzalloc(dev, sizeof(*gpio), GFP_KERNEL); - if (gpio == NULL) + if (!gpio) return -ENOMEM; gpio->pld = pld;