From patchwork Fri Nov 13 13:49:21 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 324308 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:5ce:0:0:0:0 with SMTP id l14csp1213092ils; Fri, 13 Nov 2020 05:50:37 -0800 (PST) X-Google-Smtp-Source: ABdhPJz9zI3nWvA0tzobzx+N/O9JmlOQptf/fQFKOKy9SX9tr71V77mYHKsgQozq2T33nxC/GUk0 X-Received: by 2002:a63:e:: with SMTP id 14mr2102234pga.253.1605275437638; Fri, 13 Nov 2020 05:50:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605275437; cv=none; d=google.com; s=arc-20160816; b=vD8/UoUq092a6Cs0g2WCSTv1TGF54BrpUIcwGny/A39EMwpw0xbqwpQqPhIXzKfO5u lvWpymJHuIqkJe6ghhFs2leHdvgXofc1RC3rVtuUhryrklBXj4CF+1Ei4TMT9usS9/Az 75bumuQ6VkebYZ7zsc4ckcw8d8w6Zw/FPE3rGNIa2FdLvQHDvvehApJAaMpvJbelc0SP C51rl+WxSDN8bqcIiIxkcN0tZodVSqO5sMou2+PkXzH8bAoWRlYP73ecP/t0viTzX2y3 alU30GrSbbHvMs6Cx+W+3KZsejrjtenFU11/9W8f5iVdWzAomTx2+y01yyLC8vh4MCOZ xu+w== 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=RX9vJD37gAIkwmmzV4ls2JpMl1jRmfhXMWtVpoH46hs=; b=baGyJve7B+XDnjsQXBXDVZ6oQPYbnhYYu8RbJW3lXNFPHilC7pv9f4K8b0bygwAERO Z8e0VbL1vU4nyflvjFlkQ0kkU53xEUxtbF409RrE9rE3okwKsopuMnIYABTjCgfHON5I hDWA/PPuyJyeDn4gelpmunyXlH/UpF7RA/7MGRukLK2uxn95YqSYjOTj1fHW85+4Nzb0 GtDR1DrWzcmkDE/z2/59FX0I4hYywkSoy0KqHIjnNpsZruDPiSXwy+9rTe2hHbMB9cJv lv69dbRDAzEXkGT7Ani2N09Ub+Lft3eRHZn0pv1YvKH+tBjLsn8LuXJCtsmNH7hPTDSF 0KlA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=p+qCr72t; 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 j13si1561209pjc.23.2020.11.13.05.50.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Nov 2020 05:50:37 -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=p+qCr72t; 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 AF7226E530; Fri, 13 Nov 2020 13:50:33 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm1-x344.google.com (mail-wm1-x344.google.com [IPv6:2a00:1450:4864:20::344]) by gabe.freedesktop.org (Postfix) with ESMTPS id 7A8916E4EA for ; Fri, 13 Nov 2020 13:50:11 +0000 (UTC) Received: by mail-wm1-x344.google.com with SMTP id h62so8559538wme.3 for ; Fri, 13 Nov 2020 05:50:11 -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=CQkfxQ/U8Tk4/T1pD4+koDIKxw+zqPvW8TyQwINa4Hk=; b=p+qCr72t4ihE18soadDlaCQDbatISUugUvivCXWYBcpCtMq7piGK6yvdMfWe5dOlUz epwJ2cODurA7r/6VuUAYrYXfYCAU309NoyA05LOmjaELk3tFujk8ElkHboNXnaQcpc8G zZLHqhh1zUmkJivv/y8jjofUTY2mjY/xirZHrK5r42BuPbpXaoaH2hGm0sBHW0PClrfn G3tz9jkPvZiZZK0f28wsPfX8I29xo+ErTlJfaLfsnvomw33WeZmaQHc1upjKvr0LlHdV UJLl0EKZ4iN0XSw7CplmsnLCoN3kUHPWQWCAquy6HaUTX8YX0wKSNf3DqpVb36uZwhnF 2k/Q== 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=CQkfxQ/U8Tk4/T1pD4+koDIKxw+zqPvW8TyQwINa4Hk=; b=VLJq9KWEakKMHIufg2SCJfX6QYj9XXuMi8J6GDgYpneB0d6iL6nNOw8v2wct6+eTej J7O4Ni6twCN1GyG63YclC/DYjpy3hRnTVacW5eNnNkSkTMDL0tutXJtT4IRGgZ6muk5l W27civHtlYdTRx4vChqaiClhLUmfqigannJWeeO4KHhLysxe59vRPkmwKz2PAwWJtSCs fdeaH54I+zQC0ra8wZQLEsgmdzMj8fCJd5TtfJEzBI6avnqq7dqrjyb94AmXZCI7OTp9 aEK6COAw1KvQoKWFg6rmPXFnn901fw2xwjBfhYhnul7IO1HiGZ1hjJLBULoW5L/gTPkK r61w== X-Gm-Message-State: AOAM531zl2h0D5z4DNWMzP/Ej6lMxaHMvE+bXma2EislQg2wo2JlDAlJ F6IgXS6343G493RnzK7K2FaJcw== X-Received: by 2002:a1c:6209:: with SMTP id w9mr2608331wmb.120.1605275410099; Fri, 13 Nov 2020 05:50:10 -0800 (PST) Received: from dell.default ([91.110.221.159]) by smtp.gmail.com with ESMTPSA id t11sm4561614wrm.8.2020.11.13.05.50.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Nov 2020 05:50:09 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 23/40] drm/lima/lima_sched: Remove unused and unnecessary variable 'ret' Date: Fri, 13 Nov 2020 13:49:21 +0000 Message-Id: <20201113134938.4004947-24-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201113134938.4004947-1-lee.jones@linaro.org> References: <20201113134938.4004947-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: lima@lists.freedesktop.org, David Airlie , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linaro-mm-sig@lists.linaro.org, Qiang Yu , =?utf-8?q?Christian_K=C3=B6nig?= , linux-media@vger.kernel.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/lima/lima_sched.c: In function ‘lima_sched_run_job’: drivers/gpu/drm/lima/lima_sched.c:227:20: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable] Cc: Qiang Yu Cc: David Airlie Cc: Daniel Vetter Cc: Sumit Semwal Cc: "Christian König" Cc: dri-devel@lists.freedesktop.org Cc: lima@lists.freedesktop.org Cc: linux-media@vger.kernel.org Cc: linaro-mm-sig@lists.linaro.org Signed-off-by: Lee Jones --- drivers/gpu/drm/lima/lima_sched.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu/drm/lima/lima_sched.c b/drivers/gpu/drm/lima/lima_sched.c index a070a85f8f368..63b4c5643f9cd 100644 --- a/drivers/gpu/drm/lima/lima_sched.c +++ b/drivers/gpu/drm/lima/lima_sched.c @@ -224,7 +224,6 @@ static struct dma_fence *lima_sched_run_job(struct drm_sched_job *job) struct lima_sched_pipe *pipe = to_lima_pipe(job->sched); struct lima_device *ldev = pipe->ldev; struct lima_fence *fence; - struct dma_fence *ret; int i, err; /* after GPU reset */ @@ -246,7 +245,7 @@ static struct dma_fence *lima_sched_run_job(struct drm_sched_job *job) /* for caller usage of the fence, otherwise irq handler * may consume the fence before caller use it */ - ret = dma_fence_get(task->fence); + dma_fence_get(task->fence); pipe->current_task = task;