Skip to content

Commit

Permalink
selftests/timers: make loop consistent with array size
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Benjamin Gaignard authored and Shuah Khan committed Aug 25, 2017
1 parent 475c57c commit 8f14e26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/testing/selftests/timers/clocksource-switch.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 8f14e26

Please sign in to comment.