Staging: iio: ade7758: Remove braces on a single if
Subsystems (4)
PATCH 1/1 Staging: iio: ade7758: Remove braces on a single if
This patch fixes the checkpatch.pl warning:
WARNING: braces {} are not necessary for single
statement blocks
Signed-off-by Taiane Coelho Ramos <[email protected]>
--- drivers/staging/iio/meter/ade7758_ring.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/staging/iio/meter/ade7758_ring.c +1 -2
@@ -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);
Signature · 1 line
1.9.3
Greg KH
maintainerQuoted 9 lines · Taiane Coelho Ramos
This patch fixes the checkpatch.pl warning:
WARNING: braces {} are not necessary for single
statement blocksSigned-off-by Taiane Coelho Ramos <[email protected]>--- drivers/staging/iio/meter/ade7758_ring.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
Doesn't apply to my tree either :(