Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp220277pxf; Thu, 8 Apr 2021 01:13:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxyppo57TVSC198MPWIoabP/k+vJ5/uhPKpVKfGjGj/Lfue7nSlv5CYnqi8olQH3ckGHyl8 X-Received: by 2002:a65:410c:: with SMTP id w12mr7022829pgp.62.1617869626981; Thu, 08 Apr 2021 01:13:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617869626; cv=none; d=google.com; s=arc-20160816; b=nh2XJrRIcJAKZic/Lfozn6sBXUBaexosVd8jiCHipyXtZpsR3d1C2v+2hoorest1Ye uG5rkaFLF/nrzhxffXG2+tx/gKt0SH0rKIsoxRk1H8uE99TLXqsf681IVBjib0gyVoRI PNTLCPzTg6nEd6V0vyPo+zzstueQzSHGDhgj2pglTlZg6wdFYaTbKuZSGSTahv4bEKhK xIWU/6D/ewWLQaQCuGQ2G7UUMHXwqOoUtxbypZtqISqIG4FEowYeu9FGRarOoXEtD9Kc +v4K4k9k9yOjaZZW792qLlfGvIAIehspjsFzWQxdD/mDJmsIx51Sr7Bo1umwUEXrThkn RswA== 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=u6g5DCOZ7gP5w/4R7rCdOAQpC/iDAw0Gnr8DqufpnPc=; b=USm4kBTlnrZZ8eD94TXWD2XdA6c/dVc6mk36jwd40CNsCQxrRKW8qMZRNhSj8GFA17 TSnP4mdyYa0DfCTls7oZE6sO5zBwlqEKteYjEIpv+3a5NF5zs70ifgbe9qREHV2PQBQL EtbeA7uT4rbXr8ejaIrm5rjIQGMTTs0Do/Iak96ej0tPDDuWosZcafW9oApKROz50fz5 rwm51IL8rkfOvDV0oXL3cQgqMbxR9GOlWEwMEYBnLejz8t7OteDKkNaMdllJJuQLNXM8 TwRwaId7OZxZzRbXkb8DW26Pc9tCr2DkIB2O+ZlN2S8Ym/U9nd4UjKApakzoc6fJ8Cvj XiIQ== 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 f5si24249224pfc.57.2021.04.08.01.13.35; Thu, 08 Apr 2021 01:13:46 -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 S229687AbhDHILr (ORCPT + 99 others); Thu, 8 Apr 2021 04:11:47 -0400 Received: from out30-42.freemail.mail.aliyun.com ([115.124.30.42]:35364 "EHLO out30-42.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229586AbhDHILq (ORCPT ); Thu, 8 Apr 2021 04:11:46 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R391e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04400;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=8;SR=0;TI=SMTPD_---0UUsktmf_1617869484; Received: from j63c13417.sqa.eu95.tbsite.net(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0UUsktmf_1617869484) by smtp.aliyun-inc.com(127.0.0.1); Thu, 08 Apr 2021 16:11:33 +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 useless variable Date: Thu, 8 Apr 2021 16:11:22 +0800 Message-Id: <1617869482-49962-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_cmdbuf_res.c:163:6: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable]. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf_res.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf_res.c b/drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf_res.c index 44d858c..0d210f8 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf_res.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf_res.c @@ -160,7 +160,6 @@ void vmw_cmdbuf_res_commit(struct list_head *list) void vmw_cmdbuf_res_revert(struct list_head *list) { struct vmw_cmdbuf_res *entry, *next; - int ret; list_for_each_entry_safe(entry, next, list, head) { switch (entry->state) { @@ -168,7 +167,7 @@ void vmw_cmdbuf_res_revert(struct list_head *list) vmw_cmdbuf_res_free(entry->man, entry); break; case VMW_CMDBUF_RES_DEL: - ret = drm_ht_insert_item(&entry->man->resources, + drm_ht_insert_item(&entry->man->resources, &entry->hash); list_del(&entry->head); list_add_tail(&entry->head, &entry->man->list); -- 1.8.3.1