From patchwork Wed Mar 3 13:42:50 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 392086 Delivered-To: patch@linaro.org Received: by 2002:a02:290e:0:0:0:0:0 with SMTP id p14csp5133268jap; Wed, 3 Mar 2021 05:44:26 -0800 (PST) X-Google-Smtp-Source: ABdhPJyL7PlR1CQGls/KFHlRyYs4izG4wn7S0ywc1em6PKEBIMlTdl1iW9pTbC+CeODYFiMO53c1 X-Received: by 2002:a63:205c:: with SMTP id r28mr23977016pgm.183.1614779066494; Wed, 03 Mar 2021 05:44:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614779066; cv=none; d=google.com; s=arc-20160816; b=nyUqklcrhfhyrY6UZHoy8wY2D9w7GY5jfXQu6c0PJFb9tDXszvZ8c7On7kufAZwfTN Y8h6zDV07Sf1Ld9QtgRMewx20x6Gid8OYFxlusbqn60Vjp13AfLTPVQG5VcG1X764Bk9 iIRSJl+vCHbO/0+qY7v7pojqVEY8ZEHF1xdLeNY+6psVq32eeMs9Bmnb9YS4wMFg35Mr Jujr4+XaxyBhFQw7/RrYmfSd9WtXl7NBgcmQzyeTCTtFFNE3SD/KvUC6IIu6sqBGau3V wb4DjN99Pxomjx1FwvZAQvpKe8KGH6uLGPWxMWq8nRy94KZGVcZ1W8mWUigLDcyYdCuT Ch8Q== 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=2AtMLPDvRjHaWLY2k6bOdulYuXiaurMtcI8l+oJrIrA=; b=TTtqdRR946FW6iipNwRXazh/VG5emlGLppTC6sjKqVrpS2lZtHrHgOwPSuNTuT5o1P ZkvUzCuHqBCOyM7bS98MWzr1sgJPhy3rf/6D+vMtbHob/XTqC0SLr09tQAx6+i2iAk/2 Yn5fKxvLXtWXuFxjoUMot/E8X39pNowvkFytQN8FflBL7lrU/MwWShh34De/iUg/8Ikf rLZCGE+zY4v8g/vTZOFlvCz/VpdMeScUygTAQFey61Tkyf7iJLWyXMN/gPCMJHACk+GZ yXE/91Br/QSKz4b/QOYQAKdxqXOF0pDNV0lL/D9JvBKu6sZlIwZ/Zgx3Y1gWdneayHev 4ESg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=TgIkGyP9; 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 cp7si6164897pjb.112.2021.03.03.05.44.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 05:44:26 -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=TgIkGyP9; 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 EC2906E8FA; Wed, 3 Mar 2021 13:44:00 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) by gabe.freedesktop.org (Postfix) with ESMTPS id 3BAFC6E8FA for ; Wed, 3 Mar 2021 13:43:58 +0000 (UTC) Received: by mail-wm1-x32a.google.com with SMTP id m1so6399389wml.2 for ; Wed, 03 Mar 2021 05:43:58 -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=njsbuAXEhvSkC6YoNxprxAwF24DaUFg/QS4093pyPFU=; b=TgIkGyP9JIU32AbI5hfadU2xhCSdtLwfumK9mSGqfAJPwMDpJ6ZZqpcu4zeW8Td11Q lRM81CYzICCagh40F6VzmooVY7+P5gBzN26tOhDsZgvRp/hkh+GyB4AG4FYQnj65q2ji piYJQpj7qDS0dG5ivvzUopT+srl6Dh8w5NryTWR6YHsYwVSLrL1Vs3R5Ko/mkg7ezVPJ glNsEfOZLP7CZLkamEsNtZht3f8x66dFgrIzH8NvwaqkDyxMUl8AvkxgT/XYDi1Fop8D qynT7C6kiMsYtdGh2o7N2Hd9tL/S9YYSCTBL1nylThfIeAUktbqcBVs9FTkUXWMCxbgk hPhg== 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=njsbuAXEhvSkC6YoNxprxAwF24DaUFg/QS4093pyPFU=; b=RZy7nSI/2dVX2l5D4S0puLYgucWtWUUNA7pNluIPI93LSBIh2DAKPefZDttRigxjtv P3SOwuRnO9OT/zv8KdcXHrGI/xNp9T8Cd2zG1SYMY3vjGJ5a9qiq+5Et6MurO+jVe2d0 YhQq0pxi8xWzXaipgoFlxHYaEd+bklUh6etSHn6GHwN9lVb0J80BUBl7SfkmzMLas9Mr r7MDdjyYKKjkRyboUyolkdpb7AHnvJsONA/u53684J321D/Ek5QFMN07G2yvv4J/OF6M +iIHudNwu02NSZymqtqCfuSfTy1xaokh8jcugQZNHyU0MFZ4sQ5nv9qUTdhwpKWvcKRQ QntQ== X-Gm-Message-State: AOAM5305TlGcXmPvyHOzhMsH5+1EKqFr8WGN6/vxxhM3O+ACf+iz2ERA mY1a9/kGe+J7VE9tCGyusW5Rhw== X-Received: by 2002:a1c:a98a:: with SMTP id s132mr9569035wme.12.1614779036972; Wed, 03 Mar 2021 05:43:56 -0800 (PST) Received: from dell.default ([91.110.221.155]) by smtp.gmail.com with ESMTPSA id w18sm6109524wrr.7.2021.03.03.05.43.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 05:43:56 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 24/53] drm/vmwgfx/vmwgfx_kms: Remove unused variable 'ret' from 'vmw_du_primary_plane_atomic_check()' Date: Wed, 3 Mar 2021 13:42:50 +0000 Message-Id: <20210303134319.3160762-25-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 , Roland Scheidegger , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, VMware Graphics Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/vmwgfx/vmwgfx_kms.c: In function ‘vmw_du_primary_plane_atomic_check’: drivers/gpu/drm/vmwgfx/vmwgfx_kms.c:460:31: warning: variable ‘vcs’ set but not used [-Wunused-but-set-variable] Cc: VMware Graphics Cc: Roland Scheidegger Cc: David Airlie Cc: Daniel Vetter Cc: dri-devel@lists.freedesktop.org Signed-off-by: Lee Jones Signed-off-by: Zack Rusin Link: https://patchwork.freedesktop.org/patch/msgid/20210115181313.3431493-5-lee.jones@linaro.org --- drivers/gpu/drm/vmwgfx/vmwgfx_kms.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c b/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c index 9a89f658e501c..9293dc19a7683 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c @@ -453,10 +453,9 @@ int vmw_du_primary_plane_atomic_check(struct drm_plane *plane, if (!ret && new_fb) { struct drm_crtc *crtc = state->crtc; - struct vmw_connector_state *vcs; struct vmw_display_unit *du = vmw_crtc_to_du(crtc); - vcs = vmw_connector_state_to_vcs(du->connector.state); + vmw_connector_state_to_vcs(du->connector.state); }