diff options
author | Cristina Opriceana <cristina.opriceana@gmail.com> | 2015-03-31 06:03:38 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-04-01 11:23:21 -0400 |
commit | 16d55be4cc694f76bff0cd99a8101e943e878d38 (patch) | |
tree | acba9d5986ca576ae4c497a9ce6164f8c4552b21 | |
parent | e84d0724101ba8a38afab21c118135815f707733 (diff) |
Staging: iio: impedance-analyzer: Remove explicit NULL comparison
This patch removes explicit NULL comparison and replaces it with
its shorter form. Detected with coccinelle.
Signed-off-by: Cristina Opriceana <cristina.opriceana@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/staging/iio/impedance-analyzer/ad5933.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/iio/impedance-analyzer/ad5933.c b/drivers/staging/iio/impedance-analyzer/ad5933.c index 79194399e040..c18109c55497 100644 --- a/drivers/staging/iio/impedance-analyzer/ad5933.c +++ b/drivers/staging/iio/impedance-analyzer/ad5933.c | |||
@@ -703,7 +703,7 @@ static int ad5933_probe(struct i2c_client *client, | |||
703 | struct iio_dev *indio_dev; | 703 | struct iio_dev *indio_dev; |
704 | 704 | ||
705 | indio_dev = devm_iio_device_alloc(&client->dev, sizeof(*st)); | 705 | indio_dev = devm_iio_device_alloc(&client->dev, sizeof(*st)); |
706 | if (indio_dev == NULL) | 706 | if (!indio_dev) |
707 | return -ENOMEM; | 707 | return -ENOMEM; |
708 | 708 | ||
709 | st = iio_priv(indio_dev); | 709 | st = iio_priv(indio_dev); |