projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
gpio: use (!foo) instead of (foo == NULL)
[firefly-linux-kernel-4.4.55.git]
/
drivers
/
gpio
/
gpio-arizona.c
diff --git
a/drivers/gpio/gpio-arizona.c
b/drivers/gpio/gpio-arizona.c
index ab350383660c3e4270b0112ca69f445eebbfe8d7..eb5a0ce49fa59ecc0c8486a40d7a2d78d7b998aa 100644
(file)
--- a/
drivers/gpio/gpio-arizona.c
+++ b/
drivers/gpio/gpio-arizona.c
@@
-103,7
+103,7
@@
static int arizona_gpio_probe(struct platform_device *pdev)
arizona_gpio = devm_kzalloc(&pdev->dev, sizeof(*arizona_gpio),
GFP_KERNEL);
- if (
arizona_gpio == NULL
)
+ if (
!arizona_gpio
)
return -ENOMEM;
arizona_gpio->arizona = arizona;