Message ID | 20210303134319.3160762-3-lee.jones@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a02:290e:0:0:0:0:0 with SMTP id p14csp5132738jap; Wed, 3 Mar 2021 05:43:43 -0800 (PST) X-Google-Smtp-Source: ABdhPJyY+PS6ymHRTDXbFQq/C5/Ykt+yJBk6Mehtqd1cG6gYFR9/TPC+R9UeRbsPbvJ+6wdLRsRC X-Received: by 2002:a63:cb4c:: with SMTP id m12mr22953101pgi.51.1614779023482; Wed, 03 Mar 2021 05:43:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614779023; cv=none; d=google.com; s=arc-20160816; b=otQlOiqleFgOROswsW2JOzlEYQn+4lhrl1gxWtR4xj8OEDJ+Cu6Xm4WNRxv0R6SqD0 p0DLawt0BEGG2SaQuRJ204q+5s8WgHjNKJ3Ekj/fMy/72nn0RXX0QzbwLIv8AUzjACyq 1n+iEg1phbJOTSeM1hnOidJAbrdmJYR5baaheIeOEcFYUyly6Gcqc4anFzZ5aJ++/boS W32vUc2QfUrJpXaRvGws+9ltA8Bcb9/Nhd/BlUtelaHsW3YILco3bVZrY64KXxTJR/M2 3i0SoAQa80JrtSY1xv5VyWoMcwosPIeY8jdq3YttQlmjxCCXhWbZGkuFob3TQS0oaih3 kusw== 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=AnTDIhagjLIFk4/IU9hD9d5oUyI4Yz+0dOQByZIcO1w=; b=j04d+V2wk6UhCbnWhXhjxvUydy5VmDqlZY4T3f0owYdmvRyjJ2100iaHkCqWKSnTZI F4nvmwrup/KunthDe5WzlBUuaOw6CiQxC87i5/n27JaZ+p/EJX/dgsIpIj1UeA+H00B7 LJOCgUilcXcLp4mlQrYVacfsTGTyz++vWL26iNG1eR+SC9a+KCCZuoenRvWYmKWjehO7 v0L+CnYz75X0OKwMzIoul5V908mAa8QfGJXNvurseK7Xb+cZtC9FIR+Pd7Dnh4vHcCXU B2azdDkWq6r+34X7Q7dXRJLCPj83/8lgV/1bVUbY4SfOTCl2DOSKcXA2jzclmj6I+1Jf ATFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=sRgB8t25; 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: <dri-devel-bounces@lists.freedesktop.org> Received: from gabe.freedesktop.org (gabe.freedesktop.org. [2610:10:20:722:a800:ff:fe36:1795]) by mx.google.com with ESMTPS id e7si23301936pgk.527.2021.03.03.05.43.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 05:43:43 -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=sRgB8t25; 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 EAE226E8F4; Wed, 3 Mar 2021 13:43:34 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm1-x332.google.com (mail-wm1-x332.google.com [IPv6:2a00:1450:4864:20::332]) by gabe.freedesktop.org (Postfix) with ESMTPS id 41E5989E69 for <dri-devel@lists.freedesktop.org>; Wed, 3 Mar 2021 13:43:32 +0000 (UTC) Received: by mail-wm1-x332.google.com with SMTP id e23so5213846wmh.3 for <dri-devel@lists.freedesktop.org>; Wed, 03 Mar 2021 05:43:32 -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=RtDwwCGh7BV2jdAMFgyU0jxW3SadS1NJKEYSwbpKHII=; b=sRgB8t25PZ10NkKal1+Peihtxu3GBrpIEwtbkDw27UzpVFQ3vx8N1Mf2WTQ7ghbjVQ Xl76lwrOvw1fNHzen5mLV36KjI+ddlwXHlxOFhD0iqCJg9U/mdhCaSpzgc5ppVg7T+kA tAcDT+por1yZTddeRmmq1oEn72Qig/It4dAOaIhLvuW4PJFhrOa8jzeYlneKPloH7vKQ 8EMprRzfE6UxTKOqziJbd+JBDsTyYgkr0ZdR7nvsGLCtsQTIBRql7VF76lFxSiwe6A0y Gociy9qIFajV/I1guI1glaRMFdlcm1bOgG2ONLUZ9H8DB4KHNtljK5w8/L5xkCFNKA2U hChQ== 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=RtDwwCGh7BV2jdAMFgyU0jxW3SadS1NJKEYSwbpKHII=; b=KEySSUr7W0BR+REfo/NjpcdoBDmwqLXaVCXqjkGn/+XsM36T7TBnMAuz0jVv+0sa87 ecsuzahT4kfJrNmRoiCuAczbkf5rtZMtrVa3AFjzEcjYapact8x/kBaP6MJHhJ7+1htM Maq0izSzsiAfJWVhDvUm2/+uxYfNmkQCqIFge8JO92j+7Py8bj8b6ObWWsTKZKfuvbMl AbRIzvlPH6dhXK3pB1StbRbsObVA+6/V9/ZFXTsdLIfljZRsXmJgIdN6G7pU9LlKKlKM 24ljgpLcaWtAv1a1WA8/RkUqaJ0p4jfgkOoId1X7kKIVJaC0rf2HH4dPtb5zPBLP+1mk EnJQ== X-Gm-Message-State: AOAM530dIjzewY3ZidFDms5f7GhDA3YktIRIulYwfUavriz0izDpNnZU VNb1efgwUpiD/5xOHwKqWSx/8w== X-Received: by 2002:a1c:400b:: with SMTP id n11mr9078519wma.167.1614779011028; Wed, 03 Mar 2021 05:43:31 -0800 (PST) Received: from dell.default ([91.110.221.155]) by smtp.gmail.com with ESMTPSA id w18sm6109524wrr.7.2021.03.03.05.43.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 05:43:30 -0800 (PST) From: Lee Jones <lee.jones@linaro.org> To: lee.jones@linaro.org Subject: [PATCH 02/53] drm/nouveau/dispnv50/disp: Remove unused variable 'ret' Date: Wed, 3 Mar 2021 13:42:28 +0000 Message-Id: <20210303134319.3160762-3-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 <dri-devel.lists.freedesktop.org> List-Unsubscribe: <https://lists.freedesktop.org/mailman/options/dri-devel>, <mailto:dri-devel-request@lists.freedesktop.org?subject=unsubscribe> List-Archive: <https://lists.freedesktop.org/archives/dri-devel> List-Post: <mailto:dri-devel@lists.freedesktop.org> List-Help: <mailto:dri-devel-request@lists.freedesktop.org?subject=help> List-Subscribe: <https://lists.freedesktop.org/mailman/listinfo/dri-devel>, <mailto:dri-devel-request@lists.freedesktop.org?subject=subscribe> Cc: David Airlie <airlied@linux.ie>, nouveau@lists.freedesktop.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Ben Skeggs <bskeggs@redhat.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" <dri-devel-bounces@lists.freedesktop.org> |
Series |
Rid GPU from W=1 warnings
|
expand
|
diff --git a/drivers/gpu/drm/nouveau/dispnv50/disp.c b/drivers/gpu/drm/nouveau/dispnv50/disp.c index 196612addfd61..c51efca82ac78 100644 --- a/drivers/gpu/drm/nouveau/dispnv50/disp.c +++ b/drivers/gpu/drm/nouveau/dispnv50/disp.c @@ -1410,10 +1410,9 @@ nv50_mstm_prepare(struct nv50_mstm *mstm) { struct nouveau_drm *drm = nouveau_drm(mstm->outp->base.base.dev); struct drm_encoder *encoder; - int ret; NV_ATOMIC(drm, "%s: mstm prepare\n", mstm->outp->base.base.name); - ret = drm_dp_update_payload_part1(&mstm->mgr); + drm_dp_update_payload_part1(&mstm->mgr); drm_for_each_encoder(encoder, mstm->outp->base.base.dev) { if (encoder->encoder_type == DRM_MODE_ENCODER_DPMST) {
Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/nouveau/dispnv50/disp.c:1381:6: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable] Cc: Ben Skeggs <bskeggs@redhat.com> Cc: David Airlie <airlied@linux.ie> Cc: Daniel Vetter <daniel@ffwll.ch> Cc: dri-devel@lists.freedesktop.org Cc: nouveau@lists.freedesktop.org Signed-off-by: Lee Jones <lee.jones@linaro.org> --- drivers/gpu/drm/nouveau/dispnv50/disp.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)