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

Commit 6970791f authored by Cristina Opriceana's avatar Cristina Opriceana Committed by Greg Kroah-Hartman
Browse files

Staging: iio: Remove explicit comparison to NULL



This patch simplifies pointer comparison to NULL and makes code
easier to read. Warning found by checkpatch.pl.

Signed-off-by: default avatarCristina Opriceana <cristina.opriceana@gmail.com>
Reviewed-by: default avatarDaniel Baluta <daniel.baluta@intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 56cc3b62
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -220,7 +220,7 @@ static int ad9832_probe(struct spi_device *spi)
	}

	indio_dev = devm_iio_device_alloc(&spi->dev, sizeof(*st));
	if (indio_dev == NULL) {
	if (!indio_dev) {
		ret = -ENOMEM;
		goto error_disable_reg;
	}
+1 −1
Original line number Diff line number Diff line
@@ -336,7 +336,7 @@ static int ad9834_probe(struct spi_device *spi)
	}

	indio_dev = devm_iio_device_alloc(&spi->dev, sizeof(*st));
	if (indio_dev == NULL) {
	if (!indio_dev) {
		ret = -ENOMEM;
		goto error_disable_reg;
	}