From patchwork Wed Dec 19 16:23:35 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Engestrom X-Patchwork-Id: 10737695 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 40F67924 for ; Wed, 19 Dec 2018 16:23:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2C7FA2B41B for ; Wed, 19 Dec 2018 16:23:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1D5E82B594; Wed, 19 Dec 2018 16:23:44 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id C3BB22B41B for ; Wed, 19 Dec 2018 16:23:43 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id EB86089D99; Wed, 19 Dec 2018 16:23:42 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by gabe.freedesktop.org (Postfix) with ESMTPS id F2BE389D99 for ; Wed, 19 Dec 2018 16:23:40 +0000 (UTC) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 19 Dec 2018 08:23:40 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,373,1539673200"; d="scan'208";a="108629761" Received: from kszypryt-mobl.ger.corp.intel.com (HELO eengestr-dev.ger.corp.intel.com) ([10.251.83.167]) by fmsmga007.fm.intel.com with ESMTP; 19 Dec 2018 08:23:39 -0800 From: Eric Engestrom To: dri-devel@lists.freedesktop.org Subject: [PATCH libdrm] amdgpu/tests: drop unused local vars Date: Wed, 19 Dec 2018 16:23:35 +0000 Message-Id: <20181219162335.27474-1-eric.engestrom@intel.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Organization: Intel Corp UK X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Eric Engestrom Reviewed-by: Emil Velikov --- tests/amdgpu/vce_tests.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/amdgpu/vce_tests.c b/tests/amdgpu/vce_tests.c index b9e15ee97148ee3b38d4..0026826ea58bd9d9dd8b 100644 --- a/tests/amdgpu/vce_tests.c +++ b/tests/amdgpu/vce_tests.c @@ -648,12 +648,10 @@ static void check_mv_result(struct amdgpu_vce_encode *enc) { uint64_t sum; uint32_t s = 140790; - uint32_t *ptr, size; - int i, j, r; + int j, r; r = amdgpu_bo_cpu_map(enc->fb[0].handle, (void **)&enc->fb[0].ptr); CU_ASSERT_EQUAL(r, 0); - ptr = (uint32_t *)enc->fb[0].ptr; r = amdgpu_bo_cpu_unmap(enc->fb[0].handle); CU_ASSERT_EQUAL(r, 0); r = amdgpu_bo_cpu_map(enc->mvb.handle, (void **)&enc->mvb.ptr);