From: Cristina Moraru Date: Tue, 20 Oct 2015 19:55:42 +0000 (+0300) Subject: staging: iio: accel: Remove explicit comparisons X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=eee587ea87343777f51825c532462635dd2e4157;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git staging: iio: accel: Remove explicit comparisons Remove comparisons to 0 or NULL Signed-off-by: Cristina Moraru Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/iio/accel/sca3000_ring.c b/drivers/staging/iio/accel/sca3000_ring.c index 23685e74917e..6d19e127cf40 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;