Commit f9be1085 authored by Tolga Ceylan's avatar Tolga Ceylan Committed by Greg Kroah-Hartman

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: default avatarTolga Ceylan <tolga.ceylan@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 7cb8957b
...@@ -210,7 +210,7 @@ static int ade7854_i2c_probe(struct i2c_client *client, ...@@ -210,7 +210,7 @@ static int ade7854_i2c_probe(struct i2c_client *client,
struct iio_dev *indio_dev; struct iio_dev *indio_dev;
indio_dev = devm_iio_device_alloc(&client->dev, sizeof(*st)); indio_dev = devm_iio_device_alloc(&client->dev, sizeof(*st));
if (indio_dev == NULL) if (!indio_dev)
return -ENOMEM; return -ENOMEM;
st = iio_priv(indio_dev); st = iio_priv(indio_dev);
i2c_set_clientdata(client, indio_dev); i2c_set_clientdata(client, indio_dev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment