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>
This commit is contained in:
parent
062f782b37
commit
eee587ea87
@ -267,7 +267,7 @@ int sca3000_configure_ring(struct iio_dev *indio_dev)
|
|||||||
struct iio_buffer *buffer;
|
struct iio_buffer *buffer;
|
||||||
|
|
||||||
buffer = sca3000_rb_allocate(indio_dev);
|
buffer = sca3000_rb_allocate(indio_dev);
|
||||||
if (buffer == NULL)
|
if (!buffer)
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
indio_dev->modes |= INDIO_BUFFER_HARDWARE;
|
indio_dev->modes |= INDIO_BUFFER_HARDWARE;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user