From: Taiane Coelho Ramos Date: Fri, 13 Mar 2015 19:22:44 +0000 (-0300) Subject: Staging: iio: ade7758: Remove braces on a single statement if X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=6fe9092d6a22fcb57b5e97d85e3fbe6a00a04b13;p=openwrt%2Fstaging%2Fblogic.git 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 Reviewed-by: Daniel Baluta Signed-off-by: Greg Kroah-Hartman --- 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);