tools: iio: Remove unnecessary braces
authorCristina Opriceana <cristina.opriceana@gmail.com>
Mon, 13 Jul 2015 13:17:47 +0000 (16:17 +0300)
committerJonathan Cameron <jic23@kernel.org>
Mon, 20 Jul 2015 17:41:22 +0000 (18:41 +0100)
Single statement blocks don’t need braces.
Found with checkpatch.pl.

Signed-off-by: Cristina Opriceana <cristina.opriceana@gmail.com>
Acked-by: Hartmut Knaack <knaack.h@gmx.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
tools/iio/iio_event_monitor.c

index 703f4cb0e8e9b149f6a9d2f6b3d7e3896d33740d..9ee195949a4a5abfae6ea597272e76cf391cf327 100644 (file)
@@ -262,9 +262,8 @@ int main(int argc, char **argv)
                printf("Found IIO device with name %s with device number %d\n",
                       device_name, dev_num);
                ret = asprintf(&chrdev_name, "/dev/iio:device%d", dev_num);
-               if (ret < 0) {
+               if (ret < 0)
                        return -ENOMEM;
-               }
        } else {
                /*
                 * If we can't find an IIO device by name assume device_name is