staging: iio: accel: Remove explicit comparisons
authorCristina Moraru <cristina.moraru09@gmail.com>
Tue, 20 Oct 2015 19:55:42 +0000 (22:55 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 25 Oct 2015 02:32:09 +0000 (19:32 -0700)
Remove comparisons to 0 or NULL

Signed-off-by: Cristina Moraru <cristina.moraru09@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/iio/accel/sca3000_ring.c

index 23685e74917e2a5c3f3ab6dc6542f48d5ecbb2a9..6d19e127cf406257d8d49b7b58ba867bb989b035 100644 (file)
@@ -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;