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: Benjamin Gaignard <benjamin.gaignard@linaro.org> Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
This commit is contained in:
parent
475c57cce3
commit
8f14e26b63
|
@ -50,7 +50,7 @@ int get_clocksources(char list[][30])
|
|||
|
||||
close(fd);
|
||||
|
||||
for (i = 0; i < 30; i++)
|
||||
for (i = 0; i < 10; i++)
|
||||
list[i][0] = '\0';
|
||||
|
||||
head = buf;
|
||||
|
|
Loading…
Reference in New Issue