From patchwork Wed Mar 3 13:43:08 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 392101 Delivered-To: patch@linaro.org Received: by 2002:a02:290e:0:0:0:0:0 with SMTP id p14csp5133594jap; Wed, 3 Mar 2021 05:44:50 -0800 (PST) X-Google-Smtp-Source: ABdhPJyqd/wtAvpWelkwKDjwm4dOYdQogfGUTsU0HKhgYKOoiBlX6sZtF91prV7puoO8Nbu+acB6 X-Received: by 2002:a17:902:68:b029:e3:c8ea:a562 with SMTP id 95-20020a1709020068b02900e3c8eaa562mr2830558pla.23.1614779090793; Wed, 03 Mar 2021 05:44:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614779090; cv=none; d=google.com; s=arc-20160816; b=SjLsGh0oUBi6ycqPqI27V3jxkjjjw0+/bYvsWsc2+TIB55vP1AHOgMgZBiD4w75DFG EHotXgpz2xqnMCYsRZrNmLytQXNuiihKtgJBsfyNnkaLpo245SRDinxydAk4zLZdW7jt hQTppRL069efS+B7LPUgs28+SAZ5YrbaaRfEnbwWjnO5HlkS4ZiOu/Pwal831fAijcnD kVQOGd6IgthAGMa3KOynfpxnXp1xtnFieFN9QVqJVVDpbt8S66qAjfg9tuUf1fElhAhT U1+vRsKl/B8MokL149r2/SJ1z1TfVqpfgkSB6sW9smb97X7NeLFE7tl+cTMQkRVXcAcW 57jg== 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=hfA6hRtIQ53RugVMQqgApjx0oivK8PlXWR4guTijmrQ=; b=kCPYYPcqNTXp91WlXUq2+icm4OeCgWnvAOitIni9fQwnig7kH5vwrxWcGo6ZJyaVFT Pmj/TvMPRou9l9lngCWQmE6Na8ixIMrkeU8CjSkNNtPrr4CxGXP50ixJl65FjGk4LYYb PrQ8I7DZbPXXMVGjR+MeUQM4Iz103QKS/kjD7WSyoVWpsfDjxwYuuVMb5YHDQZA9GuSD 3NsNXH1mOM13n9A422H9QpPOt/q6EzxVwg1WpQQzotIJdOrE84VrCLJHjJRToaoIvT7g RjFQ2g91bJ8u0tZuwzHn5j8HjIspK0dmnt3ZhBNQ8fIqJLjHIIjvRxQc3wKe250DdknS OodQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=mzLCVvzT; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 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. [131.252.210.177]) by mx.google.com with ESMTPS id q6si12118846pgt.2.2021.03.03.05.44.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 05:44:50 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=mzLCVvzT; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 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 77D5D6E947; Wed, 3 Mar 2021 13:44:20 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x42b.google.com (mail-wr1-x42b.google.com [IPv6:2a00:1450:4864:20::42b]) by gabe.freedesktop.org (Postfix) with ESMTPS id 787426E958 for ; Wed, 3 Mar 2021 13:44:19 +0000 (UTC) Received: by mail-wr1-x42b.google.com with SMTP id f12so19932853wrx.8 for ; Wed, 03 Mar 2021 05:44:19 -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=cWfSkLsOFqMqwFajDViY0GDy36kEao+sHnvIWX+OuUc=; b=mzLCVvzT8ZvO420Azr5mfjX30PlXUIrvbQHxMtN4US7RxeQlR04wUoXvV46MOWj67E TWBlNF4/fpmvc9jBPbo8VUcZihj5NbZNatn1o4r/fSJ+yH4/3bVrwGGDdLvQ3qZiVJh2 SkXaBry/0wkXurG3AA4Ii8agUSDhJfuQLrC0Fijehb/xyKuNWqT2fuZGhON2EEEwzyNf saNBVVglJJvtHS4T1+IJlUj26Hbale91MzMi3i9Y3teiy9iiWr0/Slz1czb37udJnR/E 7n7Q1YnI5xP0NRV/cB7DCp6C/uWjoNIIh7DO9fX7nE3KgwNNfcgC7mm34lRPE0XyViv4 o1ZA== 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=cWfSkLsOFqMqwFajDViY0GDy36kEao+sHnvIWX+OuUc=; b=hMSFpxlu2u5N5j2v/plOEgVJxwZwbYsUqiouPj3fNK29kmppSLJbOl5baDkpNgFZGO js0SU0awZpwvaxsdpgtsefDjo2Ar0DVSIbeutDd/s3RuUPFFRldtYJiwPBQj110AaUOC dFzqgtDdRiLJYFKKU5RM5N0D0ElPYPdUI6yAPCb49qNeqMqp760RPu5qUYefMmuYDNr9 5gr083Ensrn6jjy5HsA+M4sAvoR2gWvvawZKA6WXc2XARRKakIGlu9InzdeR5GTanCMr zPMuHEYkGW2vF0+oV2TWIYUypyhXutyY5teDo5jIRqHS5VCYLqITdQPN3H4VCvgdZO9y Vt3g== X-Gm-Message-State: AOAM5328u88u2maA4wYcPQqYRHWX1AkxVCGQ4reLW/WwL6L4pBamJIsh kO5HMnt536C1vVQk1mcugdiVQg== X-Received: by 2002:a05:6000:1281:: with SMTP id f1mr27793282wrx.243.1614779058227; Wed, 03 Mar 2021 05:44:18 -0800 (PST) Received: from dell.default ([91.110.221.155]) by smtp.gmail.com with ESMTPSA id w18sm6109524wrr.7.2021.03.03.05.44.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 05:44:17 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 42/53] drm/vmwgfx/vmwgfx_cmdbuf_res: Remove unused variable 'ret' Date: Wed, 3 Mar 2021 13:43:08 +0000 Message-Id: <20210303134319.3160762-43-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_cmdbuf_res.c: In function ‘vmw_cmdbuf_res_revert’: drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf_res.c:162:6: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable] Cc: VMware Graphics Cc: Roland Scheidegger Cc: Zack Rusin 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-40-lee.jones@linaro.org --- drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf_res.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf_res.c b/drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf_res.c index 92509fbf2fd1d..b262d61d839d5 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf_res.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf_res.c @@ -159,7 +159,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) { @@ -167,8 +166,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, - &entry->hash); + drm_ht_insert_item(&entry->man->resources, &entry->hash); list_del(&entry->head); list_add_tail(&entry->head, &entry->man->list); entry->state = VMW_CMDBUF_RES_COMMITTED;