Skip to content

Commit

Permalink
tools: iio: Remove unnecessary braces
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Cristina Opriceana authored and Jonathan Cameron committed Jul 20, 2015
1 parent ff1ac63 commit 37d38e2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tools/iio/iio_event_monitor.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 37d38e2

Please sign in to comment.