OSDN Git Service

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 9725a04..ead38a5 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);