From patchwork Sun Nov 20 18:25:47 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Grazvydas Ignotas X-Patchwork-Id: 9438569 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 7A82A60235 for ; Sun, 20 Nov 2016 18:26:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7257128544 for ; Sun, 20 Nov 2016 18:26:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 665DF2877B; Sun, 20 Nov 2016 18:26:02 +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=-4.1 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID 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 3861C28544 for ; Sun, 20 Nov 2016 18:26:02 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 07BD86E1B7; Sun, 20 Nov 2016 18:25:59 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm0-x243.google.com (mail-wm0-x243.google.com [IPv6:2a00:1450:400c:c09::243]) by gabe.freedesktop.org (Postfix) with ESMTPS id 2AA656E1B7 for ; Sun, 20 Nov 2016 18:25:56 +0000 (UTC) Received: by mail-wm0-x243.google.com with SMTP id u144so20903412wmu.0 for ; Sun, 20 Nov 2016 10:25:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=qignWFe4LNzjPqFHYfaKA9TUEzE9Rlc/YFFZsc42wik=; b=KKvsUk83L+gQmwZWdVAeORXVzDiAEcQugLtlzNGT6akSI4TWHAl3SrwkNZ4h2dBCPr D9AGNBQCDKj7jwdyDFgaWxWh827zuwlEMOCJ12hO6kXsE97eJQeOKDJjiXsiLzvTbU90 HjZnqYBPSMiXkoMU/5cpNUEia66cS9jx3Px0+eIGx3BK77j7weLSqyndoPLEhnK/yIXy d4fWiNWyuCYikDoDSGobKulwelryLU7o3i0d1L7zqbUeinTE5QD69MsLWvvU0Iy93Ds0 SY0GgNxIks/sP25ld3Bg+kuKJ3CZh5H9d0CAQRQsMac8KczEnNfbddW4kywwVNd1euuu 0xDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=qignWFe4LNzjPqFHYfaKA9TUEzE9Rlc/YFFZsc42wik=; b=lvlDREzLbmFcoxy6jmbAqpab2jSYG7xLd5UbuwQ0PshCdG/zt3mnLRK8zvI9oSl1uz wcklmE61YBLi18UZUSyhbJiLGTlbbB2C+OJRZlZm5/dzzsYBqmTlMzdd8wlSnFSiJebN OS9bnDUFEWmTFGyphH8fEn6Ff7yUHG+15T5dknA4RwjQnOblWSOSaid+ATV2tsaLFdcr QacNshzZZvHaLiybwhTDDqwyiVpM7Rjmv6xGhaipmBkfoR42iPJZ+TrJChahp17q/sAp zmYnZ8hvjQzdByp7iAZ1URwIcXrbLEkrnFwqB82TfUzMJFZ5XzK7xA0uLYSr6SrzDpyr vCQg== X-Gm-Message-State: AKaTC00ldnNQ1lvaTAPdHsAbAUa1IEwlWOmeTKUOp5u38pkWN4S4Lcx6GFCJ07mZ6HNEUA== X-Received: by 10.46.9.129 with SMTP id 123mr5604917ljj.20.1479666354402; Sun, 20 Nov 2016 10:25:54 -0800 (PST) Received: from localhost.localdomain ([5.20.238.37]) by smtp.gmail.com with ESMTPSA id 206sm4621487ljj.32.2016.11.20.10.25.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 20 Nov 2016 10:25:53 -0800 (PST) From: Grazvydas Ignotas To: dri-devel@lists.freedesktop.org Subject: [PATCH libdrm] tests: kms: fix shadowed declaration warning Date: Sun, 20 Nov 2016 20:25:47 +0200 Message-Id: <1479666347-17581-2-git-send-email-notasas@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1479666347-17581-1-git-send-email-notasas@gmail.com> References: <1479666347-17581-1-git-send-email-notasas@gmail.com> X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP There is no need to maintain the value in the shadowed variable from what I can see. Signed-off-by: Grazvydas Ignotas --- tests/kms/kms-universal-planes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/kms/kms-universal-planes.c b/tests/kms/kms-universal-planes.c index d8e5fc4..89057bb 100644 --- a/tests/kms/kms-universal-planes.c +++ b/tests/kms/kms-universal-planes.c @@ -212,9 +212,9 @@ int main(int argc, char *argv[]) printf("Planes: %u\n", device->num_planes); for (i = 0; i < device->num_planes; i++) { - struct kms_plane *plane = device->planes[i]; const char *type = NULL; + plane = device->planes[i]; switch (plane->type) { case DRM_PLANE_TYPE_OVERLAY: type = "overlay";