diff options
author | Cristina Moraru <cristina.moraru09@gmail.com> | 2015-10-20 19:55:42 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-10-25 02:32:09 (GMT) |
commit | eee587ea87343777f51825c532462635dd2e4157 (patch) | |
tree | a167612b2b90118e1d80944a14f2a07a61562918 /drivers/staging/iio | |
parent | 062f782b37059f7156e59f46c71225ba4a5efa06 (diff) | |
download | linux-eee587ea87343777f51825c532462635dd2e4157.tar.xz |
staging: iio: accel: Remove explicit comparisons
Remove comparisons to 0 or NULL
Signed-off-by: Cristina Moraru <cristina.moraru09@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/iio')
-rw-r--r-- | drivers/staging/iio/accel/sca3000_ring.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/iio/accel/sca3000_ring.c b/drivers/staging/iio/accel/sca3000_ring.c index 23685e7..6d19e12 100644 --- a/drivers/staging/iio/accel/sca3000_ring.c +++ b/drivers/staging/iio/accel/sca3000_ring.c @@ -267,7 +267,7 @@ int sca3000_configure_ring(struct iio_dev *indio_dev) struct iio_buffer *buffer; buffer = sca3000_rb_allocate(indio_dev); - if (buffer == NULL) + if (!buffer) return -ENOMEM; indio_dev->modes |= INDIO_BUFFER_HARDWARE; |