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:
Benjamin Gaignard 2017-08-23 18:07:05 +02:00 committed by Shuah Khan
parent 475c57cce3
commit 8f14e26b63

View file

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