diff options
author | Cristina Opriceana <cristina.opriceana@gmail.com> | 2015-07-13 09:17:47 -0400 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2015-07-20 13:41:22 -0400 |
commit | 37d38e2bcce055c3988977429dc4336c866df73d (patch) | |
tree | 2cccbe32cef52aa8446b4f455a4736af5670dc47 | |
parent | ff1ac639b395d58bbd99ff4a36b10eebb81544a3 (diff) |
tools: iio: Remove unnecessary braces
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>
-rw-r--r-- | tools/iio/iio_event_monitor.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/iio/iio_event_monitor.c b/tools/iio/iio_event_monitor.c index 703f4cb0e8e9..9ee195949a4a 100644 --- a/tools/iio/iio_event_monitor.c +++ b/tools/iio/iio_event_monitor.c | |||
@@ -262,9 +262,8 @@ int main(int argc, char **argv) | |||
262 | printf("Found IIO device with name %s with device number %d\n", | 262 | printf("Found IIO device with name %s with device number %d\n", |
263 | device_name, dev_num); | 263 | device_name, dev_num); |
264 | ret = asprintf(&chrdev_name, "/dev/iio:device%d", dev_num); | 264 | ret = asprintf(&chrdev_name, "/dev/iio:device%d", dev_num); |
265 | if (ret < 0) { | 265 | if (ret < 0) |
266 | return -ENOMEM; | 266 | return -ENOMEM; |
267 | } | ||
268 | } else { | 267 | } else { |
269 | /* | 268 | /* |
270 | * If we can't find an IIO device by name assume device_name is | 269 | * If we can't find an IIO device by name assume device_name is |