diff options
author | Cristina Opriceana <cristina.opriceana@gmail.com> | 2015-03-14 18:50:48 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-03-16 15:14:05 (GMT) |
commit | 6970791fd5683a893bc11bb4722b82d899013465 (patch) | |
tree | b58763b544acdfd920f774f45479fbbac36f432b /drivers/staging/iio/frequency/ad9832.c | |
parent | 56cc3b629b43c0a5a3d9cb5599e92a3146eff19e (diff) | |
download | linux-6970791fd5683a893bc11bb4722b82d899013465.tar.xz |
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: Cristina Opriceana <cristina.opriceana@gmail.com>
Reviewed-by: Daniel Baluta <daniel.baluta@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/iio/frequency/ad9832.c')
-rw-r--r-- | drivers/staging/iio/frequency/ad9832.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/iio/frequency/ad9832.c b/drivers/staging/iio/frequency/ad9832.c index 9a16699..8ecc0bc 100644 --- a/drivers/staging/iio/frequency/ad9832.c +++ b/drivers/staging/iio/frequency/ad9832.c @@ -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; } |