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>
This commit is contained in:
Cristina Opriceana 2015-07-13 16:17:47 +03:00 коммит произвёл Jonathan Cameron
Родитель ff1ac639b3
Коммит 37d38e2bcc
1 изменённых файлов: 1 добавлений и 2 удалений

Просмотреть файл

@ -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