Message ID | 20210319082428.3294591-14-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 g89csp1171051jai; Fri, 19 Mar 2021 01:24:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzwF/Lx0ASkc1y372RGVlwuCgO5nvSxloYHyKYT6W1tiAJCZ1iVLJ9mCDfmhK/rgEhZwWCo X-Received: by 2002:a17:90a:4498:: with SMTP id t24mr8649011pjg.78.1616142297290; Fri, 19 Mar 2021 01:24:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616142297; cv=none; d=google.com; s=arc-20160816; b=VFgIBS2LaFKwTIhmjKfVGRcG5pFfkDoppNnWvaiaQvA6728pwDUs6uJj1LUPKP5oq+ jMFYT2nyxJ91wFTofRd0zrRRxMwc+C7CMeD6KcINT9AeCQKngiPmTT9w3OmR+x9esjEm mqqNtl3MZzN1Gnrgw8Q/p5e7gakr1pq0Dw5cnoEZZWxt463q3XuLwoFCwHcx/XUYOxZa H9ShLTZWkDT6BgMGMq/sLx9yvmGg7rR3gPViiVmYLYarGL6SqW8YUDUc+5/aoLf59RoP cbSoLahnL2q6klh6BJxWvc/8oVyW2XijTcrgRcVYnb7dyj03yEOWbSj+q7VSqAw4+Rlg JNLg== 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=CF10ar8h9eQWeb3AfR5u/aawBjHts6wzSPudz03ba/Y=; b=ytBaoWsUr1Eep5abIWaB2IXtKMgrAY4K/SdAwAsuHF/bgUYu7UO04QYckiRQjFM6Mu UHb/L8fX2GFaIlec+f6nyB3Zrsew26AYwqLCFinogWlIzD57bPDletvPAf6pPazj9d0G f6saFafowiNi81J7bfBJTEIZpvABLEs3/KyRX/T0+jq/vMxf+yOzo+1z/sZm47evBHu5 SmaM/Jb7ns00/3trZhe3P4bHcI1orgjqKtiS/0kAMap91n/p7RE8cxZIOHxG6IkEdo0k x+ZFjciWw+fltJpqv1rNa/g0oRhglJbZ/8wOsWAVkHGp00R7HW4YwYFylkLTYkfMtLTe 34YQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=ih+byn5S; 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 k17si4872445pfp.222.2021.03.19.01.24.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Mar 2021 01:24:57 -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=ih+byn5S; 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 3DD256E9A6; Fri, 19 Mar 2021 08:24:51 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-ej1-x62c.google.com (mail-ej1-x62c.google.com [IPv6:2a00:1450:4864:20::62c]) by gabe.freedesktop.org (Postfix) with ESMTPS id 54A546E9A2 for <dri-devel@lists.freedesktop.org>; Fri, 19 Mar 2021 08:24:46 +0000 (UTC) Received: by mail-ej1-x62c.google.com with SMTP id u9so8276709ejj.7 for <dri-devel@lists.freedesktop.org>; Fri, 19 Mar 2021 01:24:46 -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=1D64SVMvmhdwuXpC8yQyBurTfGArjqR5f88yUwkGnjo=; b=ih+byn5SaHURLinLJy61nATTEUMe8vQzf+Wme4RNbiXwTCukEVwYWl9/LmLBd+gGPX BPV3gUINlkQOzYVHWsKkwSkuApoP6THu29KcuCPwPcErnWEkw2tbwQhW2kb963whlRR3 /Glxz65+HP+jZ50lYrNkF54H+hWUEiiLgVmxiEu8qA7Oh/YrABFLd/en2VZNM7WD9mH4 9noPJ30KTZDc9VlfmMCUVOp5v9grwMvx2bUOWxIWamPNPrPpKTD5ewqwy6Ch9HfJKX2J ZKtBbTVhHqxvIq0+cdw2sxsXWFpMcOCcZ2tcQ/j7eh3sxRxS2nt0K08u7zm6X/vgyYpK h9eg== 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=1D64SVMvmhdwuXpC8yQyBurTfGArjqR5f88yUwkGnjo=; b=WuZhIvcDl1oQgxyPmMG+/r8mwImNnzsOMxlNdMGiuINu0qdF+6qu/UGvTVJEwRVt23 B1soNNpM1rti+icwMYKWYlx53ixJBrhnLc4/xDOPpwmQ6DM9R5S9o5VnWESS8YlpX2Gm VZSSzst5wWRJfxSD7VSzjr4COTndG5k47uRzGz/1E3VPtrFGQToAbBP5C6f0pq3zzLI+ /u/8PeqmhW+kf1NOYppWxfD5kIii7FDfgGl4hHTj/0hVMc70HKGS3s+CebzuoZn3UxvK gzZPlCKJ73YQtiGNsHWj+pMjGYRcHUGpfG+b1SSm4sqEk9zVAenTGBAw0s2vaK3PNKwg LtYQ== X-Gm-Message-State: AOAM531JDBx4cqGFg7QWP4aRI/CN5sxSLmb5M7TnNVqihc8LJy+ArRQz km5IQIRpvar4EkcbFD3wZe/7nSyq4SSq0A== X-Received: by 2002:a17:907:9870:: with SMTP id ko16mr2987441ejc.227.1616142284971; Fri, 19 Mar 2021 01:24:44 -0700 (PDT) Received: from dell.default ([91.110.221.194]) by smtp.gmail.com with ESMTPSA id b18sm3273727ejb.77.2021.03.19.01.24.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Mar 2021 01:24:44 -0700 (PDT) From: Lee Jones <lee.jones@linaro.org> To: lee.jones@linaro.org Subject: [PATCH 13/19] drm/nouveau/dispnv50/disp: Remove unused variable 'ret' from function returning void Date: Fri, 19 Mar 2021 08:24:22 +0000 Message-Id: <20210319082428.3294591-14-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 c51efca82ac78..828f48d5bdd4e 100644 --- a/drivers/gpu/drm/nouveau/dispnv50/disp.c +++ b/drivers/gpu/drm/nouveau/dispnv50/disp.c @@ -1386,12 +1386,11 @@ nv50_mstm_cleanup(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 cleanup\n", mstm->outp->base.base.name); - ret = drm_dp_check_act_status(&mstm->mgr); + drm_dp_check_act_status(&mstm->mgr); - ret = drm_dp_update_payload_part2(&mstm->mgr); + drm_dp_update_payload_part2(&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: In function ‘nv50_mstm_cleanup’: drivers/gpu/drm/nouveau/dispnv50/disp.c:1357: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 | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)