From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.20]) by gabe.freedesktop.org (Postfix) with ESMTPS id 9635E10E4D6 for ; Wed, 13 Sep 2023 14:24:31 +0000 (UTC) From: =?UTF-8?q?Zbigniew=20Kempczy=C5=84ski?= To: igt-dev@lists.freedesktop.org Date: Wed, 13 Sep 2023 16:24:17 +0200 Message-Id: <20230913142417.584184-3-zbigniew.kempczynski@intel.com> In-Reply-To: <20230913142417.584184-1-zbigniew.kempczynski@intel.com> References: <20230913142417.584184-1-zbigniew.kempczynski@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [igt-dev] [PATCH i-g-t 2/2] tests/i915_pipe_stress: Remove stack variables List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" List-ID: They are unused and what's worse unassigned. Get rid of them keeping x/y_rand only. Signed-off-by: Zbigniew KempczyƄski Cc: Stanislav Lisovskiy --- tests/intel/i915_pipe_stress.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/intel/i915_pipe_stress.c b/tests/intel/i915_pipe_stress.c index 9ceb056a09..f9da5f0232 100644 --- a/tests/intel/i915_pipe_stress.c +++ b/tests/intel/i915_pipe_stress.c @@ -241,7 +241,6 @@ static void *gpu_load(void *ptr) int frame_height; drmModeModeInfo *mode; int frame = 0; - int x, y; int rect = 0, total_rects = 0; int pixels = 0; @@ -273,8 +272,8 @@ static void *gpu_load(void *ptr) x_rand = hars_petruska_f54_1_random_unsafe_max(frame_width - rect_width); y_rand = hars_petruska_f54_1_random_unsafe_max(frame_height/2 - rect_height); - context->blt_rect.x = x + x_rand; - context->blt_rect.y = y + y_rand; + context->blt_rect.x = x_rand; + context->blt_rect.y = y_rand; /* Fill randomly sized and positioned rectangles */ fill_gpu(context, context->blt_rect.x, context->blt_rect.y, -- 2.34.1