From patchwork Wed Mar 3 13:42:42 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 392078 Delivered-To: patch@linaro.org Received: by 2002:a02:290e:0:0:0:0:0 with SMTP id p14csp5133101jap; Wed, 3 Mar 2021 05:44:13 -0800 (PST) X-Google-Smtp-Source: ABdhPJwhRg4LKYMQKLO+b51vcBSvatiEFhwco3v0CMdn7qaibrB4GWRXj/fb1WdaUp+MhkpVYWDY X-Received: by 2002:a17:902:e906:b029:e5:c6d2:7dd0 with SMTP id k6-20020a170902e906b02900e5c6d27dd0mr2810085pld.12.1614779052845; Wed, 03 Mar 2021 05:44:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614779052; cv=none; d=google.com; s=arc-20160816; b=cyWFBYXCgoWj8kuX3LokQ6yRbW8tklmfDOM39KKma+IQdoIiCFcaL0efq1V9ErPyoU mz41Rffb4qbupdIZ5jm16GOyrCyIr/D9+vFqY2jnWIFebNr1vw7R2id5vS25AkI+KopZ lFZYqHgS7UXHQin1z/yMr+15QD0zuEbwZ22e/6iME7akhzlNGeFD0doecnaodDbOqNSd 7/kAL9E0y0dAivb/nUb1TxIdozF2Y0nf/WQZab04Nkp2FoSswc7CPFU/VdcSf0CjEkVD C6RM2rbsMMFETvziOD8gD+0T5LanmINE3t/n89exLPHcbliMotc0/w4lDqXu65VDiU5t 7hkw== 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=DXgeQhzW59aL16qCW5B3kJcJZ7dvxVAq1WdTxG5j7jsdlqQ42MTkZzyXEVv8ijrvZH WMwN4zxGQBesnu8RqEx6H0BCFu5I3Pz2WxwfADYyHoNeLv1wINO2h1aCkn0AbAkwytDb HuNM/6JoiyLXsxrvXcIhMlTqyEZ/qv3C8DW5LTuhEtVDLvRUPG3n11FVR3y7ngOvu7HA hM46GwJ44o0QqOozYlJmrEOxcRPSoSqSwkmEq2rBaserhPWsC3ptj9bVx/Hcwkbcc9Cf OvQdowvNa8lI2H7YXGZzfHe44Y7ZWhmUU/ZAo0I8orxmYeKW19xzaqtK5LcoAOAFKdfy WVOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=PFvYLvLO; 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: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id i17si25183655pfa.242.2021.03.03.05.44.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 05:44:12 -0800 (PST) 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=PFvYLvLO; 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 46FF36E8F0; Wed, 3 Mar 2021 13:43:50 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x42b.google.com (mail-wr1-x42b.google.com [IPv6:2a00:1450:4864:20::42b]) by gabe.freedesktop.org (Postfix) with ESMTPS id 76C756E8F0 for ; Wed, 3 Mar 2021 13:43:48 +0000 (UTC) Received: by mail-wr1-x42b.google.com with SMTP id a18so15531434wrc.13 for ; Wed, 03 Mar 2021 05:43:48 -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=1D64SVMvmhdwuXpC8yQyBurTfGArjqR5f88yUwkGnjo=; b=PFvYLvLOQQyWQMQRv4QlSlNwCBMSEjOKXmCpUftQ+PvbDpgZOJKJWEzuCJ/uFmzDFT uGEpjSkOlZNv2tRYz7PFRV4iWltZDCbgb1FFE5BEUmtSbT0XQ8EnMYsuCBcmYL8V9En3 1V8IKzlZVWlD9//2RJlxWN+ye9+ba1OnpWhjakABlRSfaGY6fSdvmD0scUf55SI8fba9 Zu3Gk7arkZw39XPrAAOH6i6RInJWfI7pOUsy26ANUMBndF7AIzmvFRgdZ30pAmtKcbZb WtOtgpOrP8xBW1/Ii2jnB1Jy11P7zdZk5bjEoEcvU9EezBqTQ6m1frK5HvQLasK+erwD EnQA== 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=Uzbz2iAPMrxH8SL+MNqd8P3Al1aJeedwi+i3wPJ7bETMN677ryi2ALGhj9ECKa5pRb Yeo5QD4EJZSYs6lC55BXkmWK+1ezs2Zqs8BXbQtBf7NzI3bOfwOmuHK04ETmKVunKh1Y awsTN3tbGCU2Q8I0vyuGL0ld7g1U4sf8uztARzNiRBy5YPBV82GEP4rSg3w4EfnLKyne k1tJYWD/LytGqbhQLUDhl89en8w5T+c3NdFZaycGyvzVLuaIedqUnxcNkCgpHLIYBPeC moLl81G7ly4ewbHpmaaz2zhAhitbyFVCQtvmHXbjioDJnG6ebBsyvzS3dONxcO3MJCer viWw== X-Gm-Message-State: AOAM533C0KG3rYcqlc6s9mCqDfbOAquONI77b9wRvcIQF0S9+PodVTgS TuMdVBvZbsn1MT2+RBtClATm/g== X-Received: by 2002:adf:ffc8:: with SMTP id x8mr16151717wrs.384.1614779027164; Wed, 03 Mar 2021 05:43:47 -0800 (PST) Received: from dell.default ([91.110.221.155]) by smtp.gmail.com with ESMTPSA id w18sm6109524wrr.7.2021.03.03.05.43.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 05:43:46 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 16/53] drm/nouveau/dispnv50/disp: Remove unused variable 'ret' from function returning void Date: Wed, 3 Mar 2021 13:42:42 +0000 Message-Id: <20210303134319.3160762-17-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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: David Airlie , nouveau@lists.freedesktop.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Ben Skeggs Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" 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 Cc: David Airlie Cc: Daniel Vetter Cc: dri-devel@lists.freedesktop.org Cc: nouveau@lists.freedesktop.org Signed-off-by: Lee Jones --- drivers/gpu/drm/nouveau/dispnv50/disp.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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) {