gpio: use (!foo) instead of (foo == NULL)
Signed-off-by: Varka Bhadram <varkab@cdac.in> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:

committed by
Linus Walleij

parent
4878b46679
commit
afeb7b45e9
@@ -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;
|
||||
|
Reference in New Issue
Block a user