diff options
author | Benjamin Gaignard | 2017-08-23 18:07:05 +0200 |
---|---|---|
committer | Shuah Khan | 2017-08-25 18:00:51 +0200 |
commit | 8f14e26b63b1b6c7c681409e9db1bbf054e00b32 (patch) | |
tree | 0fa52853dd9d15d99e701ca1947f9830c74d3feb /tools | |
parent | selftests: timers: remove rtctest_setdate from run_destructive_tests (diff) | |
download | kernel-qcow2-linux-8f14e26b63b1b6c7c681409e9db1bbf054e00b32.tar.gz kernel-qcow2-linux-8f14e26b63b1b6c7c681409e9db1bbf054e00b32.tar.xz kernel-qcow2-linux-8f14e26b63b1b6c7c681409e9db1bbf054e00b32.zip |
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>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/testing/selftests/timers/clocksource-switch.c | 2 |
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 3ef214628067..bfc974b4572d 100644 --- a/tools/testing/selftests/timers/clocksource-switch.c +++ b/tools/testing/selftests/timers/clocksource-switch.c @@ -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; |