commit | afeb7b45e96239f0bfa610dd40945786f5a9b164 | [log] [tgz] |
---|---|---|
author | Varka Bhadram <[email protected]> | Tue Mar 31 09:49:11 2015 +0530 |
committer | Linus Walleij <[email protected]> | 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 <[email protected]> Signed-off-by: Linus Walleij <[email protected]>
diff --git a/drivers/gpio/gpio-da9052.c b/drivers/gpio/gpio-da9052.c index 389a4d2..2e9578e 100644 --- a/drivers/gpio/gpio-da9052.c +++ b/drivers/gpio/gpio-da9052.c
@@ -212,7 +212,7 @@ 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);