Skip to content

Commit 8f14e26

Browse files
Benjamin-GaignardShuah Khan
authored andcommitted
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 <[email protected]> Signed-off-by: Shuah Khan <[email protected]>
1 parent 475c57c commit 8f14e26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/testing/selftests/timers/clocksource-switch.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ int get_clocksources(char list[][30])
5050

5151
close(fd);
5252

53-
for (i = 0; i < 30; i++)
53+
for (i = 0; i < 10; i++)
5454
list[i][0] = '\0';
5555

5656
head = buf;

0 commit comments

Comments
 (0)