From patchwork Wed Jan 13 08:07:47 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 362057 Delivered-To: patch@linaro.org Received: by 2002:a02:ccad:0:0:0:0:0 with SMTP id t13csp297048jap; Wed, 13 Jan 2021 00:08:42 -0800 (PST) X-Google-Smtp-Source: ABdhPJzyW4m0aCaPiWEs55DwWc9S89Krn8C33jUBb+e9dp6m6RYxCixmXEUZtzp9WDY5ZrXOHAJD X-Received: by 2002:a17:90a:df12:: with SMTP id gp18mr1030326pjb.43.1610525322422; Wed, 13 Jan 2021 00:08:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610525322; cv=none; d=google.com; s=arc-20160816; b=XZGtqf5JLxulnpD4Hcr7gGfWkkFLNTZ1NZHPTZiyWGHe/0vuPL8/dkPTuMLA7G47pQ D781iATjL7nqPjhw9VZuh0ZiDIwnXqeFvOiQ2bqaUZ9ebF1oyMAc3VJqFanHdmtvFvh9 Ohy0r1zzC+ZRnSllzaN7CUKsahthjv/0cMcuViAiiM8k0tIThuDvB/DgdM5uXxNWkw45 6Mc5PYaF1f5FmShG9i96FlwASLtlwUUzCNMDw8Y+bg/ugeLs1g9GHKyvToHzkeiig9qr wxzofJg3D6XGI2oF4OKk1b00BX+A3hUwkDcoPBJ+NPH6+YlKAGTr179DlwZt9VD0Kl6J Hefw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:references:in-reply-to:message-id:date :subject:to:from:dkim-signature:delivered-to; bh=jXmjGZLlLG+IxE40bT2t6PS3PF6djkiMGul/1nrAlRE=; b=FLo2bMPKBwscqBSCj0DvqWBUFlacPTtZDhMEgLf+9IwUTeMQhgmb/+Zfjzbn+gjXcA h/6D3nMPy/09ZLPmX1KrxJpTLWBvadeEWW+Ds0llu2iZPAaaOIu57Yi16d0jG80mMyUM f7ZVk1Q8cuVcRaqXDOPRNLUoKxcIRD9ldxiWvZez/HxxV0oy/KYePxt/xxVOyF/Ng+ai gz9Qk6w+xh3Fxz+1xGUlp42cInQfxJ8azV8En1lqtZ59m0ZCzT3EV0mUFzD/HjAsy3eC Z3Re0RY4q0IfnZMUvxsus+ygGisqHvxpfJjZzG4owav3HSoVb/055fX/rpOlvbDR58Iq Ejnw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=tgoX12VN; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [2610:10:20:722:a800:ff:fe36:1795]) by mx.google.com with ESMTPS id b4si1510494pgl.413.2021.01.13.00.08.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Jan 2021 00:08:42 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) client-ip=2610:10:20:722:a800:ff:fe36:1795; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=tgoX12VN; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 963F06E09F; Wed, 13 Jan 2021 08:08:30 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm1-x329.google.com (mail-wm1-x329.google.com [IPv6:2a00:1450:4864:20::329]) by gabe.freedesktop.org (Postfix) with ESMTPS id 148136E072 for ; Wed, 13 Jan 2021 08:08:28 +0000 (UTC) Received: by mail-wm1-x329.google.com with SMTP id h17so507561wmq.1 for ; Wed, 13 Jan 2021 00:08:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ePSRgs/Oht29QZLcRjU0xPTTc8gUIb5jIpmVTTqKzN0=; b=tgoX12VNW482sdZIyhl4ORWffsWRGDAF8WKOquXRllWLqJQJ78J3p7CT3/31OGzuoE LoI2e+hpCagmbWE7g9VZMY5FqXOO68yRFfHKZapDdAVFihCP92NcdYdcmXg8mnx7fzFP ArXKyu3k0AqXcnnif2fMoO+PBfwaWpllqLkI//UH1JpLZwzAtYmLYTOw+gfDcLaaGcBS fCRbKczPAoKW3pT+QpCDo3depBAbo6gTUMW07IbdTpiamAxRYaPZ31vaIOTZC8v4Alcb jM86MNad9CjDADKOq6ByP6Bbo8HioNGIbOn4ErP6CYSdC2bD9M+t9qlkOdo2XYMLU9IV OS/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ePSRgs/Oht29QZLcRjU0xPTTc8gUIb5jIpmVTTqKzN0=; b=Dl20pueNRBHEA0tkr0sT0P44Mu9txWEdT34VmrqxcExfnJSaoCNDmq1h0+Zi3C2HXG uQaibpgrQm8NZuurOJu36n+G0Rthi7hwmxT07KQPenaZkdfFSiEuLuouJ5nwmVbRcuKp 1HDNZQAxw3DPMzq6/q/ovHZuIjD7ifYAzHWNobeaYjgX7O9Nt++t2Qt4FuGqgDYshOJg +6oItrJ0rF7lAjKN1T9/f9p6GZ6/m2rN83SEQabymoNJt8LXQS2UclQ0RMFJv5htCDmj KZa0NgXrQ0b/1VcKxgw1sjjW5Yu6nsPN5+PiFdOocesUrsdWruU7J2jec+zXFLRm8beK XlWA== X-Gm-Message-State: AOAM530jh0SZUJKC7QRn9xfbrVJVuPMVaKoeNYy5Yw9TWK8gfIzjrHd8 cdyo68y2PWIPsb6YLenKoD0cQQ== X-Received: by 2002:a05:600c:230a:: with SMTP id 10mr929325wmo.172.1610525306810; Wed, 13 Jan 2021 00:08:26 -0800 (PST) Received: from dell.default ([91.110.221.229]) by smtp.gmail.com with ESMTPSA id r20sm1642486wmh.15.2021.01.13.00.08.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Jan 2021 00:08:26 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 25/30] drm/nouveau/nouveau_display: Remove set but unused variable 'width' Date: Wed, 13 Jan 2021 08:07:47 +0000 Message-Id: <20210113080752.1003793-26-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210113080752.1003793-1-lee.jones@linaro.org> References: <20210113080752.1003793-1-lee.jones@linaro.org> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: David Airlie , nouveau@lists.freedesktop.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Ben Skeggs Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/nouveau/nouveau_display.c: In function ‘nouveau_framebuffer_new’: drivers/gpu/drm/nouveau/nouveau_display.c:309:15: warning: variable ‘width’ set but not used [-Wunused-but-set-variable] Cc: Ben Skeggs Cc: David Airlie Cc: Daniel Vetter Cc: dri-devel@lists.freedesktop.org Cc: nouveau@lists.freedesktop.org Signed-off-by: Lee Jones --- drivers/gpu/drm/nouveau/nouveau_display.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/nouveau/nouveau_display.c b/drivers/gpu/drm/nouveau/nouveau_display.c index bceb48a2dfca6..b76bba4ca0856 100644 --- a/drivers/gpu/drm/nouveau/nouveau_display.c +++ b/drivers/gpu/drm/nouveau/nouveau_display.c @@ -306,7 +306,7 @@ nouveau_framebuffer_new(struct drm_device *dev, struct nouveau_bo *nvbo = nouveau_gem_object(gem); struct drm_framebuffer *fb; const struct drm_format_info *info; - unsigned int width, height, i; + unsigned int height, i; uint32_t tile_mode; uint8_t kind; int ret; @@ -346,9 +346,9 @@ nouveau_framebuffer_new(struct drm_device *dev, info = drm_get_format_info(dev, mode_cmd); for (i = 0; i < info->num_planes; i++) { - width = drm_format_info_plane_width(info, - mode_cmd->width, - i); + drm_format_info_plane_width(info, + mode_cmd->width, + i); height = drm_format_info_plane_height(info, mode_cmd->height, i);