From patchwork Wed Mar 3 13:42:40 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 392075 Delivered-To: patch@linaro.org Received: by 2002:a02:290e:0:0:0:0:0 with SMTP id p14csp5133046jap; Wed, 3 Mar 2021 05:44:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJyXXTvbrenDridhRKx1acjj10wkMWhZRYRFYSVl9/muDZPb41Eylsvs5+r2lkw/XQcfn0Hn X-Received: by 2002:aa7:8d92:0:b029:1ee:75d1:c87 with SMTP id i18-20020aa78d920000b02901ee75d10c87mr3177593pfr.9.1614779048504; Wed, 03 Mar 2021 05:44:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614779048; cv=none; d=google.com; s=arc-20160816; b=q2ipB/pP4ybGM/p8gwcMxTUf1y39gnMBe2JeOJlAj5o0DyxEcTXE8jO78Y4bEEDVAQ iJXhwInOHoGTvZROU5EOPG64/568Lr0DbwlN9IChXeYAR0EeJjJtCxt3XkO+x/fSghhx GJA3CxU+k34iv9FH3bG17q249ltE24KCZxwO6aQ/RMG9Y0cXQHaccAULcQJqc0GZq76L 60UEFLZRRloQYljGqA8TqXuIxgKtS8rlrq2fCYTmTjt+SdGyG+gnL5qbG6wPz8jwE7xo 0ZW03uBl+qGwOf1l3rnge4D6+wQx/v/TNXrbb5odjTEPBxHdLhDPQqsnfi3tIuaKSRkD +OLg== 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=C2c1VEPUVUy8LW7W/3PaIDQKT2SI8CDlJyJhHwiFiew=; b=iOw+RWJLsOlNyh2A6PgeM98/By0HKf1RN7f0qb6dopU24Vwg34XluxxVAJOHK7kpIr M7qHobEZKzEPjxrGb9znP9iiFMq/xTXRCPas4Qo5FaYQilPqlhCuEwmJJIGnjSYVZunw CukjYF0F4qBOjOYXYEy4wvJzAqQe+23/A8TsTt/eSJ0PXwe0GfTlo+YVqmXm+uyqFyGA J+FdWwz3Kj6Jrtcoi2vrQHIMXXtDntjj/ysvmUJgKzbFp6gSZrTrkVcEcgV08nnFX1wE DNzUstyaQpTwRc4bMcjALrGeomi0t7wber3XDsj6+GfCQ0hFOYnoPwZz1kDbElAQ9PZZ dW5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=MYUt36BH; 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 s3si14558453plg.2.2021.03.03.05.44.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 05:44:08 -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=MYUt36BH; 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 5810F6E8F8; Wed, 3 Mar 2021 13:43:47 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x436.google.com (mail-wr1-x436.google.com [IPv6:2a00:1450:4864:20::436]) by gabe.freedesktop.org (Postfix) with ESMTPS id 7D46E6E8EC for ; Wed, 3 Mar 2021 13:43:46 +0000 (UTC) Received: by mail-wr1-x436.google.com with SMTP id f12so19930928wrx.8 for ; Wed, 03 Mar 2021 05:43:46 -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=dhEuhGFXr/bQGRE4okPVNID5UMggkL9a7rhCimuP+ao=; b=MYUt36BHKi3+/nFVEwYOKehOixCmGYE75NoUp9lQ8IyUA60ZXrT1kCGasQIb3lerEi lxYGVvqkhzzo/2mnZiWA+W4MS59e6NtKYarYxEBxC+js4/3KVp0aw5VOIjykL++ohZVw vfAvPed6+VgGAZbh06xm+D8naHhdyuSh/hTJR8EzknQF2KvLpM+rdVOOq60lPonItUL4 mPzZ+j8K33j6sFxolR4hFZhxfXxg7yM1dbjJwGafe1/xdnM1EWJtn1mUjQdFepJh+Cuv jBBIrRfR6UP7ZgbhkaPzubfZrW0jzRTPi5ZxfRdjQ5OiMSMzrpkw0VqIeg9AvY+dXGRH DHnw== 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=dhEuhGFXr/bQGRE4okPVNID5UMggkL9a7rhCimuP+ao=; b=ssZ9NOrFzhXUrh+uEbs0CVtO9THNMuR3XR19o40Q1taWbnPprwiMTmHoWO7QqhE6hG Ikb8xEKB5vg7bnjU23XyHRstgwRSqI6stG6ulg5Yt/db0mvjBZ3etjXE+rhGk4AIRFSa VR1g0eXxfD2y6WeENLFEynxJaE2FoDlBlWnaLC22LboldiILAzTNW2dJzlQ04fDsFdoY JucznZhAgemANhkVqbbqR4SG70w7Z7rwVk6dmuGykZK4qeWMGzliu340tBroonkGfwf6 cwRQ6d/RvTJT+myWdMAUaxZNIYdONlnulajqRz7oaeAwVK478EuEjUPhPaHzC1Q73lqY PQew== X-Gm-Message-State: AOAM533vGKHR9oT61E7ZKPIoTOP333mnVbel4zzpC4j5fqIU9nx6iiAE h93aQnBNEm6DUlsVzl0DWu2mQw== X-Received: by 2002:a5d:5104:: with SMTP id s4mr28478476wrt.62.1614779025255; Wed, 03 Mar 2021 05:43:45 -0800 (PST) Received: from dell.default ([91.110.221.155]) by smtp.gmail.com with ESMTPSA id w18sm6109524wrr.7.2021.03.03.05.43.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 05:43:44 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 14/53] drm/nouveau/nouveau_display: Remove set but unused variable 'width' Date: Wed, 3 Mar 2021 13:42:40 +0000 Message-Id: <20210303134319.3160762-15-lee.jones@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210303134319.3160762-1-lee.jones@linaro.org> References: <20210303134319.3160762-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 17831ee897ea4..0849f367631a9 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);