Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Tolga Ceylan and committed by
Jonathan Cameron
21bd23ea b5c44378

+1 -1
+1 -1
drivers/staging/iio/meter/ade7854-i2c.c
··· 210 210 struct iio_dev *indio_dev; 211 211 212 212 indio_dev = devm_iio_device_alloc(&client->dev, sizeof(*st)); 213 - if (indio_dev == NULL) 213 + if (!indio_dev) 214 214 return -ENOMEM; 215 215 st = iio_priv(indio_dev); 216 216 i2c_set_clientdata(client, indio_dev);