From patchwork Wed Aug 23 16:07:05 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Benjamin Gaignard X-Patchwork-Id: 110861 Delivered-To: patch@linaro.org Received: by 10.140.95.78 with SMTP id h72csp4341230qge; Wed, 23 Aug 2017 09:08:11 -0700 (PDT) X-Received: by 10.84.184.12 with SMTP id l12mr3693101plc.203.1503504490978; Wed, 23 Aug 2017 09:08:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1503504490; cv=none; d=google.com; s=arc-20160816; b=Y80LxU8nP8zI8l8InxI/2cukp1xu2MqaK6+8WLZ9Rt0W4cuYT2tdpcBD6dITLy/puE pS0A48Lpm0iYN0Gi/VQQ3N1J5mVtQfft+THPuztmUMpdtR1YnCMDsqpaaWBD7jENfL8L KxTNLI3Wmhb7L7IRXx/FK3eva46sOLhhfBlpoiTNNfk0FN05gpXOtBziOOhgHHBglWaG WT5fDNZXQTmvvOBshf5BRkbF1zmT96Toux3P4OEBIy+unsio7fPJn1T9PGzdWWoXI8cd ZIKhm6KhQzuf7iJtLMRD6fdMHx/dWro8F2ak4oJ6YhNC3vooqA0iUyYar7DH6lxWKyxe MJnw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=4s9xa8XCl1YNAXu4Y7uIAe2iwxA5g2063XzSh4PF+kw=; b=PI8umAoEzNq0ylsCfoCEyiHwG0czIBVfuhqXQ2SPxhnurvXKLRClMNUCG7CoeAtjSO PE1oTxsmGfcsBtsdZb4WeWgyW+sNp7BbljjeiSifo+w8qF1cuZYSYLm3dUTsRUrTrkSO 1ig74eut05yYrMMRct+ywumeFNY5De6ChEnvbJutlqByDlDseEdhFetP7DYM1h/W6qKo jBzziFVt+QPqaKcdV75l+FlrsYLzjSFxMlp4wUNcJdpp0avbr1pLP6m7bqtdvQIYc3Vz lPS/+YfXBxzIiI4BhjDVNzbFmj22iDnABZML3hJrKheMQfsvXQkYXQjDQ8q3QzT2K+8P 6siA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KpYfrVSo; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 44si1307921plb.898.2017.08.23.09.08.10; Wed, 23 Aug 2017 09:08:10 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KpYfrVSo; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932272AbdHWQII (ORCPT + 26 others); Wed, 23 Aug 2017 12:08:08 -0400 Received: from mail-wr0-f171.google.com ([209.85.128.171]:33927 "EHLO mail-wr0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932187AbdHWQIE (ORCPT ); Wed, 23 Aug 2017 12:08:04 -0400 Received: by mail-wr0-f171.google.com with SMTP id p14so1984389wrg.1 for ; Wed, 23 Aug 2017 09:08:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=4s9xa8XCl1YNAXu4Y7uIAe2iwxA5g2063XzSh4PF+kw=; b=KpYfrVSorXEEJy5Lcbpp4GegoQr8U2fAVG4sAdQnv9v8oMhLwX7kCRJtWq/caak2gD sdX4e8HyBDC8r5wdztTCuqfTD/rCa2v+BYAPE+i18QCwQEfifxi+fZFBswD7dTwhqjQ+ mcO29x4ps2PJ0GI1c5yl8uRjVXPKk/H7OO9k4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=4s9xa8XCl1YNAXu4Y7uIAe2iwxA5g2063XzSh4PF+kw=; b=r/ou3w2MAC6g47z9fILQHuKpz0NFcmqbA/CdF1phW7B8DONk8JQFXDAwuAA+BlNl8U TWLyw6jniSKOFoM/TEljTkiMa4VSRr/G6MqewYwWNPEh91Si/NSc4v1Oc9RwXhg9PoIy h8KNKdhNseSViN5KSKc6leoHwY9oRXsOq1Vatkx6ZL0/5f6Ur739Nrr5HP6LdkMCGKFJ 5amfhzfaNikvCbDPmFefgCVUWpm4pzCiHHoQFk4n800b/Tx3mHyWIGVm34mTChG5uSos oE9So8ezvgfaWpoo17RmUu8xCBPPIGgcHU0hVLtwOn7a2R5DBiRy5T5bCxSNxRlnO0AJ Np+w== X-Gm-Message-State: AHYfb5jdFTjcJBf3W5Q9AbbShdTtQKdAtraJpwFP7x37niqZv2aYC0fQ 7ZuUDXSBtavAiREE X-Received: by 10.223.171.28 with SMTP id q28mr1737833wrc.95.1503504483094; Wed, 23 Aug 2017 09:08:03 -0700 (PDT) Received: from lmecxl0911.lme.st.com ([80.215.1.178]) by smtp.gmail.com with ESMTPSA id m27sm4377137wrf.69.2017.08.23.09.08.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 23 Aug 2017 09:08:02 -0700 (PDT) From: Benjamin Gaignard To: john.stultz@linaro.org, tglx@linutronix.de, sboyd@codeaurora.org, shuah@kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org Cc: Benjamin Gaignard Subject: [PATCH] selftests/timers: make loop consistent with array size Date: Wed, 23 Aug 2017 18:07:05 +0200 Message-Id: <1503504425-22808-1-git-send-email-benjamin.gaignard@linaro.org> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- tools/testing/selftests/timers/clocksource-switch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.7.4 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;