Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 16d55be4 authored by Cristina Opriceana's avatar Cristina Opriceana Committed by Greg Kroah-Hartman
Browse files

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: default avatarCristina Opriceana <cristina.opriceana@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent e84d0724
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -703,7 +703,7 @@ static int ad5933_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);