From patchwork Fri Jan 15 18:13:12 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 363701 Delivered-To: patch@linaro.org Received: by 2002:a02:ccad:0:0:0:0:0 with SMTP id t13csp89658jap; Fri, 15 Jan 2021 10:14:42 -0800 (PST) X-Google-Smtp-Source: ABdhPJzCxbPTJ0+ZIc3dNZ2IaI5QcdYUSFwH63GlN5aNqm4lJpJ4lo1mmnzI501RhLeD6QlCOPNz X-Received: by 2002:a63:e4a:: with SMTP id 10mr13961361pgo.45.1610734482125; Fri, 15 Jan 2021 10:14:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610734482; cv=none; d=google.com; s=arc-20160816; b=Qxw/GKIfz+I/cXA+CM1Pw8Pyeh1fGdBCyzQZ8Um+1O4YqmBnp2SZTNNV/fvPMOoAYd ZINIMucsjhGoOUvVy9vDy6McbvkYQzm6zQy8goCfD/X7Dh8cXE4QA/PefOFQVgyFj+DN Xydc0dDpuiquONwNWDfDO1UxBrqd31I8KrwEAJeQDEVTJYxajl7rRdBK7+Xpqaj7hNmL H4hQ0Epo3ly4Z5zilNfScIp26VCx1/wDnHeoptjbzS+ZwypF2myK+1+7rtXhMWbdMx7+ wXBemWgWwKnI3rSzfgNwBtJ0RJfBWyvE7cPHIXwbTO+i5feczMLlO+FC6uAkdBU5Da75 5QOw== 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=B3hoLwK35D8JfpaAAwig/hpaRT2NvusU4wKaF/NvJc8=; b=KWi5tGeK4PTQQUREJv66AxVUfH0JdMf6kqWp4KFC8xKxkPnpB/tfZYGSmkJc9RPsOK Ag3rA/Y9cDSyE1C4NUkYTuwTq9AsM76V478iRJyM3ae6aYQs4e2YSe6joPLjSL9jviqi +XDbVgKCcXl2ILnZEINE4qPOBunBz0Oy6X/fJITtc4EN+9qrbBGkCFgfZu7g98WWZBdc l+kihwh4For+oE5et//I0hLkb95wTftreG6d8+aWoZbdH/1strTmGD6f4JGWDPOUBTHL BZ6lF8hQDiXInAofEmOQEedVM99WL0fjUxLJIeweZ+E3OM3USKMosbDXlE3t+NZOvBHg YzJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=qGaHgBNT; 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 s6si1360590pjk.31.2021.01.15.10.14.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Jan 2021 10:14:42 -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=qGaHgBNT; 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 515016E4B6; Fri, 15 Jan 2021 18:14:31 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm1-x336.google.com (mail-wm1-x336.google.com [IPv6:2a00:1450:4864:20::336]) by gabe.freedesktop.org (Postfix) with ESMTPS id A5D066E0CA for ; Fri, 15 Jan 2021 18:14:14 +0000 (UTC) Received: by mail-wm1-x336.google.com with SMTP id e15so1997425wme.0 for ; Fri, 15 Jan 2021 10:14:14 -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=eQaT8O9XxcsJgVKni1h0yZPLQZvOBcm7ZwMWNBkJiNk=; b=qGaHgBNTx/fmF+7Ais7Ufdt9dmQbs5EWdBbcb57RTL+tsSdSG4dLYqS9cxfLbabOBM G7I9mfukkMai6ee/f1y806pY54Bn5Spyy/lJ+0gebGjME7nRSZhwig9Ab/PU/kMiYg76 mzI5bP3uYAC1BJWW096JxqScQIA4ZkiEe9M5zfTyTJBhTf6QXjhDL+HacORBsYZv3rW3 FeJ+dEqcpLZUwtxPPWorSiauOcrk5TU9ew+/7T0tr/u7+w/wvoZK5pd85sOSdZdHs3Sf 1oorr/AZEqW+GB/mtVJMRy6oiv2AWntCCnTYB8gOg/kWttSVJvcSMHlBtdvydQBhyfR1 eoYg== 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=eQaT8O9XxcsJgVKni1h0yZPLQZvOBcm7ZwMWNBkJiNk=; b=MqIGdKdvSfm0SiJw7VOEm+dIZXVmtlbSdyPDJOQFPlDytBU3o4WKb9/fubuKWsSpNm 5TQJ2kVUGF+NUlzE/MSY+sjV9rgFiUWJ6q7PkKgPYc0FZlsTnuRJmh8E1Ot8MnYZZ1C+ YgmBE3kPaEPeLOZ7FKKA4swhsq4oWQG+8cKagKTSAtKvE9rD5CvT140vAaKv1jndQChX cR2XhwOBqeHN4ES+G75PhFI/KE6aUBd0rOZIkAUfTleB2jkwvP/mJIA45lRRP0DUVWgM 45Mefi+9kiFL/87Aj0uLhRO6WwWmlckEpjTVuHjM0XFUK63MZ3isbivRH2Ji4SKig7IE tJUQ== X-Gm-Message-State: AOAM531HkvIOMM49cHHqagUs/mBA4NsudQjAUUezFnilPnZR+zE7SF71 x1qIkbZ/kpLRwLG548nLHOomWw== X-Received: by 2002:a1c:cc14:: with SMTP id h20mr9966183wmb.180.1610734453384; Fri, 15 Jan 2021 10:14:13 -0800 (PST) Received: from dell.default ([91.110.221.158]) by smtp.gmail.com with ESMTPSA id j2sm16123484wrh.78.2021.01.15.10.14.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Jan 2021 10:14:12 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 39/40] drm/vmwgfx/vmwgfx_cmdbuf_res: Remove unused variable 'ret' Date: Fri, 15 Jan 2021 18:13:12 +0000 Message-Id: <20210115181313.3431493-40-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210115181313.3431493-1-lee.jones@linaro.org> References: <20210115181313.3431493-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 --- 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;