提交 8f14e26b 编写于 作者: B Benjamin Gaignard 提交者: Shuah Khan

selftests/timers: make loop consistent with array size

clocksource_list array is defined as char [10][30] so
to initialise it we only have to iterate 10 times.
Signed-off-by: NBenjamin Gaignard <benjamin.gaignard@linaro.org>
Signed-off-by: NShuah Khan <shuahkh@osg.samsung.com>
上级 475c57cc
...@@ -50,7 +50,7 @@ int get_clocksources(char list[][30]) ...@@ -50,7 +50,7 @@ int get_clocksources(char list[][30])
close(fd); close(fd);
for (i = 0; i < 30; i++) for (i = 0; i < 10; i++)
list[i][0] = '\0'; list[i][0] = '\0';
head = buf; head = buf;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册