From: Shuah Khan <shuah@kernel.org>
To: Benjamin Gaignard <benjamin.gaignard@linaro.org>,
john.stultz@linaro.org, tglx@linutronix.de, sboyd@codeaurora.org,
linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org,
Shuah Khan <shuahkh@osg.samsung.com>,
Shuah Khan <shuah@kernel.org>
Subject: Re: [PATCH] selftests/timers: make loop consistent with array size
Date: Fri, 25 Aug 2017 10:06:11 -0600 [thread overview]
Message-ID: <9e18e516-8577-8b0e-9f8c-37d08a44d958@kernel.org> (raw)
In-Reply-To: <1503504425-22808-1-git-send-email-benjamin.gaignard@linaro.org>
On 08/23/2017 10:07 AM, Benjamin Gaignard wrote:
> 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>
> ---
> tools/testing/selftests/timers/clocksource-switch.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tools/testing/selftests/timers/clocksource-switch.c b/tools/testing/selftests/timers/clocksource-switch.c
> index 5ff1653..56fbfc1 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;
>
Good catch. Thanks. Applied to linux-kselftest next for 4.14-rc1.
thanks,
-- Shuah
prev parent reply other threads:[~2017-08-25 16:06 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-23 16:07 Benjamin Gaignard
2017-08-25 16:06 ` Shuah Khan [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=9e18e516-8577-8b0e-9f8c-37d08a44d958@kernel.org \
--to=shuah@kernel.org \
--cc=benjamin.gaignard@linaro.org \
--cc=john.stultz@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=sboyd@codeaurora.org \
--cc=shuahkh@osg.samsung.com \
--cc=tglx@linutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®