public inbox for igt-dev@lists.freedesktop.org
 help / color / mirror / Atom feed
From: Petri Latvala <petri.latvala@intel.com>
To: igt-dev@lists.freedesktop.org
Cc: Petri Latvala <petri.latvala@intel.com>
Subject: [igt-dev] [PATCH i-g-t 3/4] gem_exec_latency: Initialize variance to zero
Date: Wed, 13 Mar 2019 14:06:40 +0200	[thread overview]
Message-ID: <20190313120641.7350-3-petri.latvala@intel.com> (raw)
In-Reply-To: <20190313120641.7350-1-petri.latvala@intel.com>

It's just added to in a loop later without any initialization or
direct assignment.

Signed-off-by: Petri Latvala <petri.latvala@intel.com>
---
 tests/i915/gem_exec_latency.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/i915/gem_exec_latency.c b/tests/i915/gem_exec_latency.c
index 6dd191ec..1b022df5 100644
--- a/tests/i915/gem_exec_latency.c
+++ b/tests/i915/gem_exec_latency.c
@@ -597,7 +597,7 @@ rthog_latency_on_ring(int fd, unsigned int engine, const char *name, unsigned in
 	for (unsigned int child = 0; child < nengine; child++) {
 		struct rt_pkt normal = results[NPASS * child + 1];
 		igt_stats_t stats;
-		double variance;
+		double variance = 0.0;
 
 		igt_stats_init_with_size(&stats, NPASS);
 
-- 
2.19.1

_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

  parent reply	other threads:[~2019-03-13 12:06 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-13 12:06 [igt-dev] [PATCH i-g-t 1/4] gem_exec_gttfill: Plug memory leak Petri Latvala
2019-03-13 12:06 ` [igt-dev] [PATCH i-g-t 2/4] gem_exec_fence: Really loop through all engines Petri Latvala
2019-03-13 12:33   ` Chris Wilson
2019-03-13 12:06 ` Petri Latvala [this message]
2019-03-13 12:33   ` [igt-dev] [PATCH i-g-t 3/4] gem_exec_latency: Initialize variance to zero Chris Wilson
2019-03-13 12:34     ` Chris Wilson
2019-03-13 12:06 ` [igt-dev] [PATCH i-g-t 4/4] gem_exec_lut_handle: Initialize c Petri Latvala
2019-03-13 12:12   ` Chris Wilson
2019-03-13 12:36   ` Chris Wilson
2019-03-13 12:32 ` [igt-dev] [PATCH i-g-t 1/4] gem_exec_gttfill: Plug memory leak Chris Wilson
2019-03-13 13:47 ` [igt-dev] ✓ Fi.CI.BAT: success for series starting with [i-g-t,1/4] " Patchwork
2019-03-13 17:26 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork

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=20190313120641.7350-3-petri.latvala@intel.com \
    --to=petri.latvala@intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    /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