]> git.karo-electronics.de Git - linux-beck.git/commitdiff
Staging: iio: meter: ade7854-i2c: code style improvements
authorTolga Ceylan <tolga.ceylan@gmail.com>
Sun, 15 Feb 2015 04:32:45 +0000 (20:32 -0800)
committerJonathan Cameron <jic23@kernel.org>
Sun, 8 Mar 2015 12:02:26 +0000 (12:02 +0000)
Code reformatting based on checkpatch.pl with --strict:
Comparison to NULL rewritten as !indio_dev

Signed-off-by: Tolga Ceylan <tolga.ceylan@gmail.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/staging/iio/meter/ade7854-i2c.c

index 5e6fbe4c976a97f0154c4a8da1d36338c5664a78..4e7a3829ea559ab228c7fb1b639a195d7005eefe 100644 (file)
@@ -210,7 +210,7 @@ static int ade7854_i2c_probe(struct i2c_client *client,
        struct iio_dev *indio_dev;
 
        indio_dev = devm_iio_device_alloc(&client->dev, sizeof(*st));
-       if (indio_dev == NULL)
+       if (!indio_dev)
                return -ENOMEM;
        st = iio_priv(indio_dev);
        i2c_set_clientdata(client, indio_dev);