mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-09 11:23:09 -04:00
Staging: iio: ade7758: Remove braces on a single statement if
This patch fixes the checkpatch.pl warning:
WARNING: braces {} are not necessary for single
statement blocks
Signed-off-by: Taiane Coelho Ramos <exhora.tat@gmail.com>
Reviewed-by: Daniel Baluta <daniel.baluta@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
adb3d770d2
commit
6fe9092d6a
@@ -119,9 +119,8 @@ int ade7758_configure_ring(struct iio_dev *indio_dev)
|
||||
int ret = 0;
|
||||
|
||||
buffer = iio_kfifo_allocate();
|
||||
if (!buffer) {
|
||||
if (!buffer)
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
||||
iio_device_attach_buffer(indio_dev, buffer);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user