From patchwork Thu Aug 27 10:42:30 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ivan Khoronzhuk X-Patchwork-Id: 52755 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f199.google.com (mail-wi0-f199.google.com [209.85.212.199]) by patches.linaro.org (Postfix) with ESMTPS id BF18B22DC4 for ; Thu, 27 Aug 2015 10:42:49 +0000 (UTC) Received: by wibvo5 with SMTP id vo5sf2307712wib.2 for ; Thu, 27 Aug 2015 03:42:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:delivered-to:from:to:date :message-id:subject:precedence:list-id:list-unsubscribe:list-archive :list-post:list-help:list-subscribe:mime-version:content-type :content-transfer-encoding:errors-to:sender:x-original-sender :x-original-authentication-results:mailing-list; bh=TpRWwXN98cpF528LsUfPio0Sa8O5F8S/OQf7bZlGauY=; b=TKD2fwVGWhgj/OzymkekzBUOGB/RcnEUzh4YQpmQ0Km5pJ4lrZF0IKCAJnkbnj8Tac XdNDdUggpfcKCXh5fG0OxuU7KADOFgVhJEqfq/2Sa5frJDptBnOQODKiBBPLb5C+3zKM SbE8OzB+0GLGHtymYCb92rDmupCqpcZZbQQHDqBMLhodsEOtSuR44ZXRPGGwwl3k1D3n lOZ6PqUg6vlYcM02Uc5l2t0AWtDaHa5xVQfjXCy0fNi8PdARFY6Le6wH/zKZOJseB9y8 0L5TZm326vij/ae5qFveXzzfKmU607Vl12EFkSpoFexg2+JI8+vGbSo9fDjFoN1yH5v4 DMog== X-Gm-Message-State: ALoCoQmb1z3GKVykWe1N1SvVT/7XVmaY+EIapKw5AYYHCCJjc3t2FlH42Iq4Ms0sIjnR49nLvq12 X-Received: by 10.180.79.66 with SMTP id h2mr2325010wix.3.1440672169019; Thu, 27 Aug 2015 03:42:49 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.37.137 with SMTP id y9ls74729laj.60.gmail; Thu, 27 Aug 2015 03:42:48 -0700 (PDT) X-Received: by 10.152.120.38 with SMTP id kz6mr1936324lab.58.1440672168875; Thu, 27 Aug 2015 03:42:48 -0700 (PDT) Received: from mail-lb0-f181.google.com (mail-lb0-f181.google.com. [209.85.217.181]) by mx.google.com with ESMTPS id qg4si1721278lbb.25.2015.08.27.03.42.48 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 27 Aug 2015 03:42:48 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.181 as permitted sender) client-ip=209.85.217.181; Received: by lbbsx3 with SMTP id sx3so8699915lbb.0 for ; Thu, 27 Aug 2015 03:42:48 -0700 (PDT) X-Received: by 10.152.42.132 with SMTP id o4mr1859088lal.88.1440672168569; Thu, 27 Aug 2015 03:42:48 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.162.200 with SMTP id yc8csp4543510lbb; Thu, 27 Aug 2015 03:42:47 -0700 (PDT) X-Received: by 10.55.17.129 with SMTP id 1mr5073997qkr.25.1440672167739; Thu, 27 Aug 2015 03:42:47 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id z93si1801569qkg.87.2015.08.27.03.42.47; Thu, 27 Aug 2015 03:42:47 -0700 (PDT) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Received: by lists.linaro.org (Postfix, from userid 109) id DAE55621A8; Thu, 27 Aug 2015 10:42:46 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 013E661FAB; Thu, 27 Aug 2015 10:42:42 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 09E8662056; Thu, 27 Aug 2015 10:42:40 +0000 (UTC) Received: from mail-la0-f46.google.com (mail-la0-f46.google.com [209.85.215.46]) by lists.linaro.org (Postfix) with ESMTPS id D6FCF61FAB for ; Thu, 27 Aug 2015 10:42:38 +0000 (UTC) Received: by laba3 with SMTP id a3so9607569lab.1 for ; Thu, 27 Aug 2015 03:42:37 -0700 (PDT) X-Received: by 10.112.160.73 with SMTP id xi9mr1870294lbb.92.1440672157788; Thu, 27 Aug 2015 03:42:37 -0700 (PDT) Received: from khorivan.synapse.com ([195.238.92.128]) by smtp.gmail.com with ESMTPSA id ut5sm469346lbc.33.2015.08.27.03.42.36 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 27 Aug 2015 03:42:36 -0700 (PDT) From: Ivan Khoronzhuk To: lng-odp@lists.linaro.org Date: Thu, 27 Aug 2015 13:42:30 +0300 Message-Id: <1440672150-18303-1-git-send-email-ivan.khoronzhuk@linaro.org> X-Mailer: git-send-email 1.9.1 X-Topics: patch Subject: [lng-odp] [Patch] performance: odp_scheduling: remove redundant var inits X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: ivan.khoronzhuk@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.181 as permitted sender) smtp.mailfrom=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 Remove several annoying initializations. Signed-off-by: Ivan Khoronzhuk --- test/performance/odp_scheduling.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/test/performance/odp_scheduling.c b/test/performance/odp_scheduling.c index 8d388ff..66f4349 100644 --- a/test/performance/odp_scheduling.c +++ b/test/performance/odp_scheduling.c @@ -345,7 +345,7 @@ static int test_schedule_single(const char *str, int thr, odp_queue_t queue; uint64_t t1, t2, cycles, ns; uint32_t i; - uint32_t tot = 0; + uint32_t tot; if (create_queue(thr, msg_pool, prio)) return -1; @@ -421,11 +421,11 @@ static int test_schedule_many(const char *str, int thr, { odp_event_t ev; odp_queue_t queue; - uint64_t t1 = 0; - uint64_t t2 = 0; + uint64_t t1; + uint64_t t2; uint64_t cycles, ns; uint32_t i; - uint32_t tot = 0; + uint32_t tot; if (create_queues(thr, msg_pool, prio)) return -1; @@ -498,8 +498,8 @@ static int test_schedule_multi(const char *str, int thr, { odp_event_t ev[MULTI_BUFS_MAX]; odp_queue_t queue; - uint64_t t1 = 0; - uint64_t t2 = 0; + uint64_t t1; + uint64_t t2; uint64_t cycles, ns; int i, j; int num;