aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Gaignard <benjamin.gaignard@linaro.org>2018-07-26 15:28:05 +0100
committerBen Hutchings <ben.hutchings@codethink.co.uk>2018-08-24 19:06:51 +0100
commita5c67506ac6274764f0f1b09914dbba1d2f93626 (patch)
treec5abb3fd04c73d6d4f3b932095b92e63f2117962
parent6179c442f1d4e6cdc2b701f80ea2ac9bbd679a24 (diff)
downloadlinux-cip-a5c67506ac6274764f0f1b09914dbba1d2f93626.tar.gz
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> (cherry picked from commit 8f14e26b63b1b6c7c681409e9db1bbf054e00b32) Signed-off-by: Fabrizio Castro <fabrizio.castro@bp.renesas.com> Signed-off-by: Ben Hutchings <ben.hutchings@codethink.co.uk>
-rw-r--r--tools/testing/selftests/timers/clocksource-switch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/timers/clocksource-switch.c b/tools/testing/selftests/timers/clocksource-switch.c
index 627ec7425f78e1..ad55426f419029 100644
--- a/tools/testing/selftests/timers/clocksource-switch.c
+++ b/tools/testing/selftests/timers/clocksource-switch.c
@@ -61,7 +61,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;