Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp177827pxb; Wed, 14 Apr 2021 12:21:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwvKjkUi3fXiM2bOh7ILvnKlkWhBFfzcjqKSepaGSOXXJGMxjJ0znuNEs25CUeOfDjfVwdc X-Received: by 2002:a17:907:76a7:: with SMTP id jw7mr423213ejc.322.1618428072288; Wed, 14 Apr 2021 12:21:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618428072; cv=none; d=google.com; s=arc-20160816; b=MyxgezSkTIq6RasWn84m33uzIqVnMbszyevIwOj/FtCiAO4RvQrMfcN9tnGWhy3qm2 6zDUqm8DFA5LSGsHVlQ+UQTML7L+s8zMUxHHcxMfW/MNbTr1MV5GS+ooUGUQ19A2pgYC pyY9p1iWtHIjzmmzXqjicJvWZObTuvSGm9c9l5lL0bdkr6SVUN4BZxVHBlWXxBsndKzz E8d5zA6p2JasJKnnTUQCPzb5omleWf23enukqpvJpUxkPIfIdlRX/O0cdJji1aaUEbCb M784iphKX1MTjuVGubZjbJ4vXfHJKQPLpjELn+/9hgGvoaoo5Lfe9kQagGbmH/wB/2zz ebVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=CQFgwWsSkyxcUpm0IWnHnH0KdNJ1Z1e11ZQXEgFflOs=; b=i1pcze5rf2BRzrtlraLuhhTTR4FXFIPx64Q+d1oPIpTCXbHkea9XbV2bOg8FPXLJLi x78UT9k5sL0YSeSx1fFOLLQt9u7dhgScYXU93kHHruAyV5//QcsbVrHYb58L3RjnXNeQ MMIEeBjoikLTNDf016P6vBrgT6+ukUxSeykrHQUZMLDnM8srZnSnS01h75gte4DSVdF7 /hXEp4pLqSdoPM4UQELA8UJ+5kzdGS/kGaNRCwAroIXgnvggml8ER3zM6/O8XXTB9bx5 U5+fyo5V2LD/DwnkJ7Ep5+kkznVfUkX3I/C23FcUeyJymyPfw1iOJKGXPyf2718FPYkz RGsw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z19si403610edr.283.2021.04.14.12.20.49; Wed, 14 Apr 2021 12:21:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349093AbhDNGLZ (ORCPT + 99 others); Wed, 14 Apr 2021 02:11:25 -0400 Received: from out4436.biz.mail.alibaba.com ([47.88.44.36]:63129 "EHLO out4436.biz.mail.alibaba.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229840AbhDNGLY (ORCPT ); Wed, 14 Apr 2021 02:11:24 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R531e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e01424;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=8;SR=0;TI=SMTPD_---0UVWVtYW_1618380657; Received: from j63c13417.sqa.eu95.tbsite.net(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0UVWVtYW_1618380657) by smtp.aliyun-inc.com(127.0.0.1); Wed, 14 Apr 2021 14:11:01 +0800 From: Jiapeng Chong To: linux-graphics-maintainer@vmware.com Cc: sroland@vmware.com, zackr@vmware.com, airlied@linux.ie, daniel@ffwll.ch, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Jiapeng Chong Subject: [PATCH] drm/vmwgfx: remove unused variable Date: Wed, 14 Apr 2021 14:10:51 +0800 Message-Id: <1618380651-112672-1-git-send-email-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following gcc warning: drivers/gpu/drm/vmwgfx/vmwgfx_kms.c:456:31: warning: variable ‘vcs’ set but not used [-Wunused-but-set-variable]. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- 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 9a89f65..9293dc1 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); } -- 1.8.3.1