gpio: use (!foo) instead of (foo == NULL)
[linux-2.6-microblaze.git] / drivers / gpio / gpio-adp5588.c
index 0de8c70..c90273d 100644 (file)
@@ -367,7 +367,7 @@ static int adp5588_gpio_probe(struct i2c_client *client,
        struct gpio_chip *gc;
        int ret, i, revid;
 
-       if (pdata == NULL) {
+       if (!pdata) {
                dev_err(&client->dev, "missing platform data\n");
                return -ENODEV;
        }
@@ -379,7 +379,7 @@ static int adp5588_gpio_probe(struct i2c_client *client,
        }
 
        dev = devm_kzalloc(&client->dev, sizeof(*dev), GFP_KERNEL);
-       if (dev == NULL)
+       if (!dev)
                return -ENOMEM;
 
        dev->client = client;