diff options
author | Taiane Coelho Ramos <exhora.tat@gmail.com> | 2015-03-13 16:22:44 -0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-03-16 16:10:08 +0100 |
commit | 6fe9092d6a22fcb57b5e97d85e3fbe6a00a04b13 (patch) | |
tree | 2c53fde4911ccd1742a982e009929ea4c4a91ab9 /drivers | |
parent | adb3d770d20b6ce6ed985a89d6b6953e320093b1 (diff) |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/iio/meter/ade7758_ring.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/staging/iio/meter/ade7758_ring.c b/drivers/staging/iio/meter/ade7758_ring.c index 9725a04c0c92..ead38a50b25b 100644 --- a/drivers/staging/iio/meter/ade7758_ring.c +++ b/drivers/staging/iio/meter/ade7758_ring.c @@ -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); |