Message ID | 20210108201457.3078600-3-lee.jones@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a02:85a7:0:0:0:0:0 with SMTP id d36csp855451jai; Fri, 8 Jan 2021 12:15:16 -0800 (PST) X-Google-Smtp-Source: ABdhPJwN6quXEe67OuS0O7QXj30ZFqn8NJBkF7UVusxsh6hd8QD2Tn5lyQ8SbATL7tKVz6RomvUV X-Received: by 2002:a17:90a:8b08:: with SMTP id y8mr5394310pjn.42.1610136916248; Fri, 08 Jan 2021 12:15:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610136916; cv=none; d=google.com; s=arc-20160816; b=QWJZ5APHpm+FQt8cYdRrT2nnxhisVbE0DR2xStc5wQ8ym3E852njj3BndJ0wK5Q8eu rWSL7Q+mPqJG8+Ytxu2M/NsgK43SB3L4mWMIOH4GIIsS2QFaVNVZvVEkdWXXhRlEiE5N FLDVWAd6CWaWL65WVS7+8z5fZKC0e7Gf6nB6rf/H6JbuZ8kANUBp9na+RfTGdYRDtaLg lIjzc4JKDpzg+wrWhzllh+ABfrFM2Nd4+0j/+KHUY1L8qOCRAFPmiaWDpk5EBE6vIxf/ vQQnJv1xjE1NabYZFa8DtWJumqmODu8oe/0zVti3wXK9i4Fh2HyAlp1vk0NVTwjr2HFL oc6g== 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=FB8n563SoEtWMJrJ19rH+V3wbJMWqG0woY/a/PkINgk=; b=jPVyZBPy6zIQ/AMQxAdck6Ow/EfQPqEYNSUO2LIi+xn36/2oOlWXfEW3QwC+P6T77c 1HtHlckPGuqtTIAU3BN4JNvNYpMQP1MUnf6/H1A9grIL0YRcczHLSD0HB+joVv+WdSwl lt6wkU90feGBTuKE1BpVa0ahl6oee4cS0Bh2EO5ABSWN7wi0b1ZMoueKd5rQLCzG+3Vz v1JrlQPMPiMLizV9xztZgi2NbXkyExm3teRlST2Ey+d5M7HvP1l6JnrCoIPG0ZyniCBk VivjKrnB1hfkrMAeDWJf9AHQQG2jiiMRSWjFIFk5XkLnueYOKxFBfxFiFaXAhi50mRis WfNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=yAbWapUq; 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 be11si5333007plb.394.2021.01.08.12.15.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Jan 2021 12:15:16 -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=yAbWapUq; 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 329446E8C9; Fri, 8 Jan 2021 20:15:10 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x42d.google.com (mail-wr1-x42d.google.com [IPv6:2a00:1450:4864:20::42d]) by gabe.freedesktop.org (Postfix) with ESMTPS id BC8DD6E8C7 for <dri-devel@lists.freedesktop.org>; Fri, 8 Jan 2021 20:15:08 +0000 (UTC) Received: by mail-wr1-x42d.google.com with SMTP id y17so10128692wrr.10 for <dri-devel@lists.freedesktop.org>; Fri, 08 Jan 2021 12:15:08 -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=CLC3wxlYHWQ6PZsMNQdNLlm9sisuncKTa88XLx3zSUE=; b=yAbWapUqHe8VBH9G3KF49EDy/sQO6m+wgwLul50t3CREipW6GSC25Q0XUGNXI+5XDS cAMwcDsYmksX5DAN6QjkNeVu+KSWOoBaiMbvkUIXK9OlK14JbvaAtWtCGg8QIHPRyxjV e7YVrUJHXqnL8JE6wvQIBqXddGl+TU/O0ne7C55/pIRN5Pw1te6MlvwclqB2a3wyJYxt ZSUwUtFgjcXdYIpYfvOCe9W9jeLF6WARUmrw91MnBu2qdIVBQrtRZ5rP43ChK0k87CYf Pgj99VtP3blz3INbhrXCSedTTuvz/tA64m63/vAtY0NWtL67rDl7yraJ/QLw0A/4GyhL o/zQ== 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=CLC3wxlYHWQ6PZsMNQdNLlm9sisuncKTa88XLx3zSUE=; b=ckrqjevdUfYc/wSu0ei+GajZIlO0SnWzODXPGCSiv6mq5/YbKcQ3Y4zSqsVxVjSUol M7CTNqrk+QlYIokduz8GZhogYFzrD1ZSDutOoflfpYrI9JvRn7Y1QWDmCT0BRAnMi16n 6Eh2nrErrJdNOu2UxGwF6AsDRAI9DSdkSfCYrQG/EfrHWWKcRv4pdydx8xpzS+CXtmvI nfmPuG0XHlOL7qQqBlyBryPeo49EF0CY4UTKhvSOQH9M1Z1yddz2agTeUWcMfq8fEYMS gsyVVa5F5lI7Myo3acKeAcp56NBL4GSyBScyn6NU40HDuE0Q+Gq5QNsdv77/5oYhvnUf rw3w== X-Gm-Message-State: AOAM531w9O5TW+FWLp0G+ijw1z6xMtnOnTFaJL17ldq7ZhXUazFNlDB+ WrLsfCRGU23UQljXDS5Cpfk/EQ== X-Received: by 2002:a5d:69cf:: with SMTP id s15mr5214417wrw.372.1610136907434; Fri, 08 Jan 2021 12:15:07 -0800 (PST) Received: from dell.default ([91.110.221.229]) by smtp.gmail.com with ESMTPSA id l8sm15598671wrb.73.2021.01.08.12.15.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Jan 2021 12:15:06 -0800 (PST) From: Lee Jones <lee.jones@linaro.org> To: lee.jones@linaro.org Subject: [PATCH 02/40] drm/nouveau/dispnv50/disp: Remove unused variable 'ret' Date: Fri, 8 Jan 2021 20:14:19 +0000 Message-Id: <20210108201457.3078600-3-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210108201457.3078600-1-lee.jones@linaro.org> References: <20210108201457.3078600-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 W=1 warnings from GPU
|
expand
|
diff --git a/drivers/gpu/drm/nouveau/dispnv50/disp.c b/drivers/gpu/drm/nouveau/dispnv50/disp.c index 33fff388dd83c..b615204c2cba6 100644 --- a/drivers/gpu/drm/nouveau/dispnv50/disp.c +++ b/drivers/gpu/drm/nouveau/dispnv50/disp.c @@ -1378,10 +1378,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(-)