Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6fe9092d authored by Taiane Coelho Ramos's avatar Taiane Coelho Ramos Committed by Greg Kroah-Hartman
Browse files

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: default avatarTaiane Coelho Ramos <exhora.tat@gmail.com>
Reviewed-by: default avatarDaniel Baluta <daniel.baluta@intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent adb3d770
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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);