Staging: iio: ade7758: Remove braces on a single statement if
authorTaiane Coelho Ramos <exhora.tat@gmail.com>
Fri, 13 Mar 2015 19:22:44 +0000 (16:22 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 16 Mar 2015 15:10:08 +0000 (16:10 +0100)
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>
drivers/staging/iio/meter/ade7758_ring.c

index 9725a04c0c920b94f57306fb3d9070818e2f778e..ead38a50b25b9aac0baa6c61152766c3adac69db 100644 (file)
@@ -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);