提交 37d38e2b 编写于 作者: C Cristina Opriceana 提交者: Jonathan Cameron

tools: iio: Remove unnecessary braces

Single statement blocks don’t need braces.
Found with checkpatch.pl.
Signed-off-by: NCristina Opriceana <cristina.opriceana@gmail.com>
Acked-by: NHartmut Knaack <knaack.h@gmx.de>
Signed-off-by: NJonathan Cameron <jic23@kernel.org>
上级 ff1ac639
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册