diff options
author | Varka Bhadram <varkabhadram@gmail.com> | 2015-03-31 04:19:11 (GMT) |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2015-04-08 07:54:21 (GMT) |
commit | afeb7b45e96239f0bfa610dd40945786f5a9b164 (patch) | |
tree | 96ae1b9942dbc28854d22234af269d19169cd25a /drivers/gpio/gpio-mc33880.c | |
parent | 4878b46679f5b0ec86cc6ff48f4edb8a54e2a4d0 (diff) | |
download | linux-afeb7b45e96239f0bfa610dd40945786f5a9b164.tar.xz |
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-mc33880.c')
-rw-r--r-- | drivers/gpio/gpio-mc33880.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/gpio-mc33880.c b/drivers/gpio/gpio-mc33880.c index 4e3e160..a431604 100644 --- a/drivers/gpio/gpio-mc33880.c +++ b/drivers/gpio/gpio-mc33880.c @@ -151,7 +151,7 @@ static int mc33880_remove(struct spi_device *spi) struct mc33880 *mc; mc = spi_get_drvdata(spi); - if (mc == NULL) + if (!mc) return -ENODEV; gpiochip_remove(&mc->chip); |