提交 2bf99c70 编写于 作者: M Michael Hennerich 提交者: Greg Kroah-Hartman

IIO: Documentation: iio_utils: style consistency fix

No functional changes
Signed-off-by: NMichael Hennerich <michael.hennerich@analog.com>
Acked-by: NJonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 cb771cbd
......@@ -374,7 +374,7 @@ inline int build_channel_array(const char *device_dir,
}
}
/* reorder so that the array is in index order*/
current = malloc(sizeof(**ci_array)**counter);
current = malloc(sizeof(**ci_array)*(*counter));
if (current == NULL) {
ret = -ENOMEM;
goto error_cleanup_array;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册