Message ID | 20210319082428.3294591-3-lee.jones@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp1170878jai; Fri, 19 Mar 2021 01:24:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw1UqVR9cY4Kh97iaBLWcAqZ6K/RgmsEWHPr73RCDd7lnfWlAsLYqireS7gAAipM7czMXVF X-Received: by 2002:a17:90a:5d09:: with SMTP id s9mr8416764pji.228.1616142280749; Fri, 19 Mar 2021 01:24:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616142280; cv=none; d=google.com; s=arc-20160816; b=pbHQFGyM6KLPW/I6JtWMG8eKDWuYVwHfnoyowP1WTslPWLRJzkXPW+HrbhqrRnfGWv X4+j4JuFA52NhzuWXQIFze7lqLKqj45R0PwFQnI0yP6VDgp+rsNjDzdb2dcubH84i/NI vON80IpG3r8vhMWJYz1ygkTnEao8AzsvuE+clEJcbrZAuxRVYpk4lCEVi0cz+aHpsLXk xaGhqjk9fC0K9OBUrVEmB/LqVbk+tpOa3QWlWhWaGnHgMGUU+cRpc3gTjjaPNqK5D5J1 cxq5p6yse7p4iRtb3btHTUODR4cAtsOdQEHusruvOv4YLLR2gRNQ6x/XnJyaPveHhHhb MI/A== 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=HsZXO81LRF8eHVh0sMbpxBXxYWkJulmG5bg4+kn04qywONgIaz1Juul+Ryd3rRqAfQ S6CpnRy/bhx5K1RyUQamAM3KuFvU19Zx6MUDbI2gA0b2Sa8hTNBZux+7T6N73lDYF63k G9jeuUrV1VYGxrHca2z4lFJca+8+yumXxPWGtgse0JtZ3kPYrOISqJ8bHghOtpLKkVCc YqeHGpzm1sidmb305OQl6i3zCZwS7ZUmkAJYSiU9IORG4BUZUcN9bBUVa4mFOtZzGyZ7 61dfhPk8XPrgC/oW1SG/3bErciTwVWEURIXn6s/Kpva4585w8qxvfRdDFFzvc/MxPSB7 ByTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=WhTHIjR2; 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: <dri-devel-bounces@lists.freedesktop.org> Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id m2si4520921pgh.153.2021.03.19.01.24.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Mar 2021 01:24:40 -0700 (PDT) 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=WhTHIjR2; 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 C19A16E99D; Fri, 19 Mar 2021 08:24:37 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-ed1-x535.google.com (mail-ed1-x535.google.com [IPv6:2a00:1450:4864:20::535]) by gabe.freedesktop.org (Postfix) with ESMTPS id 55C936E42C for <dri-devel@lists.freedesktop.org>; Fri, 19 Mar 2021 08:24:35 +0000 (UTC) Received: by mail-ed1-x535.google.com with SMTP id y6so9776423eds.1 for <dri-devel@lists.freedesktop.org>; Fri, 19 Mar 2021 01:24:35 -0700 (PDT) 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=WhTHIjR2p9qQ5IzTyze6AacLklI9Uo/G/4AeQAM0EOoFlz5LkznOnDUWF75RUVTZny qer7yMUfkB6TKXfPaawXmK5zh8Pi9N5h6zEpScZ1Fu89JdEFkocmRuPbRm5ABbwoiFK+ gtLZ1h26d4UDgeTtC6QnsZLj98dW37j8gh6W34B4B8Xefus9CJpzpRk4OJPyCMr5bK4+ VABaE1bCTgYauqI+vzAtGP0+pGooM9EuRNTgoD7Q7DL7ybOqAnDBvAWHhGqs4yoAXfC8 Q5xYO8pwXh1ZTAuujTxEs+wME7A4VXeS0kaKvcjENfMCF8aSGC5EI3TaxGRPp/HRhFVF yQkg== 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=k+Yu5pDBNqXcdqxIcABAt2wjHHRjjTbMP7wl6k4WMMJEGfQl7cEc/gtShBjaAxozvI pzNO3p6JL7uB4Nig48A0HhDCQVHXaOy51w+0QuS8tKcBMDrVWMgMOXs8ZI5Y7fcJ4aLb hk76IOXK4WE/IPeVyAktyvIAG9IoOji431V4yARNuxhknCkfTxZx4TjUk4hjyGI5kbqs K3EYnBvs97O2+hJI1gD2UKqqSKq6ZDZpXk2RrHOGJvin6NR2irE5pOHYekih/Kcv4XRb 2TGeYJiuRnQWdz/8+0cWhg2yAcDJXTKFG9xVwmuQycWntO9uVVWx1vNmV3D5h5g+rxk3 hEmw== X-Gm-Message-State: AOAM5338z6r3WnSKSoTVJfVZptnKViqTK+j36lmVS/lhQ7zDi8RgRhc3 UnXZABd72zXyohz8lm7E1fGsWQ== X-Received: by 2002:a50:8524:: with SMTP id 33mr8258811edr.110.1616142274097; Fri, 19 Mar 2021 01:24:34 -0700 (PDT) Received: from dell.default ([91.110.221.194]) by smtp.gmail.com with ESMTPSA id b18sm3273727ejb.77.2021.03.19.01.24.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Mar 2021 01:24:33 -0700 (PDT) From: Lee Jones <lee.jones@linaro.org> To: lee.jones@linaro.org Subject: [PATCH 02/19] drm/nouveau/dispnv50/disp: Remove unused variable 'ret' Date: Fri, 19 Mar 2021 08:24:11 +0000 Message-Id: <20210319082428.3294591-3-lee.jones@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210319082428.3294591-1-lee.jones@linaro.org> References: <20210319082428.3294591-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(-)