mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-05 21:44:23 -04:00
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:
committed by
Greg Kroah-Hartman
parent
062f782b37
commit
eee587ea87
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user