summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorTolga Ceylan <tolga.ceylan@gmail.com>2015-02-14 20:32:45 -0800
committerJonathan Cameron <jic23@kernel.org>2015-03-08 12:02:26 +0000
commit21bd23ea128d083bf8a4fd570a66a128d58465b5 (patch)
tree1f532c2fc8a4dbdaca3886d205074ce1d58e1b77 /drivers
parentb5c4437872de508073355e927b1fcdba4980cba7 (diff)
downloadlinux-21bd23ea128d083bf8a4fd570a66a128d58465b5.tar.bz2
Staging: iio: meter: ade7854-i2c: code style improvements
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/staging/iio/meter/ade7854-i2c.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/iio/meter/ade7854-i2c.c b/drivers/staging/iio/meter/ade7854-i2c.c
index 5e6fbe4c976a..4e7a3829ea55 100644
--- a/drivers/staging/iio/meter/ade7854-i2c.c
+++ b/drivers/staging/iio/meter/ade7854-i2c.c
@@ -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);