staging: iio: accel: Remove explicit comparisons
[deliverable/linux.git] / 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;
 
This page took 0.025086 seconds and 5 git commands to generate.