From patchwork Wed Jan 13 08:07:49 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 362062 Delivered-To: patch@linaro.org Received: by 2002:a02:ccad:0:0:0:0:0 with SMTP id t13csp297107jap; Wed, 13 Jan 2021 00:08:48 -0800 (PST) X-Google-Smtp-Source: ABdhPJwuCkAnDdlDZ5mev9StiaQJ/xPoobLaj87LFKG5jUuZ4kvE9Ihpur7XTka11TfbdLwVrnpu X-Received: by 2002:a17:90a:348f:: with SMTP id p15mr1023618pjb.125.1610525328779; Wed, 13 Jan 2021 00:08:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610525328; cv=none; d=google.com; s=arc-20160816; b=a+JAF+HLV0z6oWrszInCsaZsIcKbOns6kiMTTzOkxKvM7yRCATyeNL7ShgEwASKOTI OPzO2b5MUYB2KZI5HLENviaO2MiBwFyAjV2ASdUB/VYRguOx27dLwvgaAHkh7jKpuIwu FC8AawADi8wqkzbjAmBh1JqohjgO7/k4WSIQIIFDcKgsSmpSQI3/NaU8CF78pWmu6FjL W6Zg7KHOXdVv84X1QqqiFMkJyPMRxnb/77UVo1b7yZ7B+mE/J+SwkOgF/KGsur8yrlK9 7g7Nfh0Z7LLvjWSdPEfR7NVoDG/129txOFNpU6Ysa4eEUNCrrnoRpWd9WzOB6uGojqDm lR+g== 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=HpjIy4UXILbEoYK4MHtHjwfjZxo3j5RkwpOOfNW6n64=; b=NcFb4bcyEuw4yP8ocu+Dk0kRfFSI3E7p80i3y+dL6Ge97gHtYF6Q2bh/h+WZAR8KXj uwGorak53Os/nxkujGUA5hGhkqOTFFIef7nIjqUF2DzlpX8UGPbt8leKX9y4w366Rqgd QrT464xe+vgXpo5M86LlH4i+g55W/DLZtbuw+5OzOTOAomW0DlD+vL6QjZZUOgJOeSaM 3VMyh01oB8xkYQLOSdL2Dtcg87PY8BXEYQmtscmGzeLcwHLYnybkbIXUtao3z0MRSGWJ opVF6yr6n6o+gCv4zDslcG4SD4O/8SJpzuuE9WuSm6kWXukmKhofag5pfuetV2sS3MS+ FVqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=inmJeTRl; 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: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [2610:10:20:722:a800:ff:fe36:1795]) by mx.google.com with ESMTPS id s10si1327725pfh.178.2021.01.13.00.08.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Jan 2021 00:08:48 -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=inmJeTRl; 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 EEC596E0B7; Wed, 13 Jan 2021 08:08:38 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm1-x333.google.com (mail-wm1-x333.google.com [IPv6:2a00:1450:4864:20::333]) by gabe.freedesktop.org (Postfix) with ESMTPS id 6EA046E07D for ; Wed, 13 Jan 2021 08:08:30 +0000 (UTC) Received: by mail-wm1-x333.google.com with SMTP id i63so688398wma.4 for ; Wed, 13 Jan 2021 00:08:30 -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=gN1pD37GpSZ83lBrPZbFyIukV/8d6W9Y5EyS4/7EyT0=; b=inmJeTRl4AVmWMtUkVPGB6U6xWuEnOy3Wwm4sKiHJLQr/ccYwrp4sJFIK+50RReh0+ hgSuriGNX6dbro0Ugw1yfhjeQI8Jc1zjDXvqu990sAW99mZRA4BfxoGZM5aJaSKiab5y LM9dCZizOE5P9N47EzRuqmR/jFzb1jcrdKk/Ys7WM2bgE5w2vr0hvA7v+ASZSQe/hmcT kiMYQYgFkZ3e33wu5V+eP3/j3W0nF8lyUJbAgcPaIoeY6Tn6F2ruDrQ7kuslLJSpkv3v 8idhUwfBq9kNYqLsoiSKrc+ehX2mq2F+mqgESYAiCJNENlcz+7yhexTyyiDG1XRiISBj 18yA== 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=gN1pD37GpSZ83lBrPZbFyIukV/8d6W9Y5EyS4/7EyT0=; b=jhREuEGRKl05/1U9W0dxEUI37Jl8q71NvKtN2BFfXTJcTk46Uf6x4aPuDzKOrhC9tj HsAEL1LSJRemMEbcUrVuNCEfYkK+f23EnYPOWsm5EJpnmecsvteEKzLqYa/H5tOCiWfb TtBLoG/DOc0V5uLusE9hNv6Qb+Y4iZMc529HUpNBN7/f/DJxPuc+sUpaOMMSNnaZG5A8 2wvNmQGQWlNJ231bcPqGqHarvoogxItsR0r7VZFBXfOqQK9uP/3wRJs2aKrRmg+W/+mU MhV7/onxDjShVGNjLAbmqCA7m1AeO9ArZICHeeOmtEfLWx5tbX/SJATSFWK8iMyrFzaP 2WYg== X-Gm-Message-State: AOAM532HmT/arBmnTEyEIGooinzHlDTjJ3gdKLwzLUj6tIhSPDJ932T6 6Mo1eP+zuvlnBFf2m+BpgmYf6A== X-Received: by 2002:a1c:5644:: with SMTP id k65mr955899wmb.62.1610525309184; Wed, 13 Jan 2021 00:08:29 -0800 (PST) Received: from dell.default ([91.110.221.229]) by smtp.gmail.com with ESMTPSA id r20sm1642486wmh.15.2021.01.13.00.08.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Jan 2021 00:08:28 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 27/30] drm/nouveau/dispnv50/disp: Remove unused variable 'ret' from function returning void Date: Wed, 13 Jan 2021 08:07:49 +0000 Message-Id: <20210113080752.1003793-28-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210113080752.1003793-1-lee.jones@linaro.org> References: <20210113080752.1003793-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 b615204c2cba6..809a9b20a6899 100644 --- a/drivers/gpu/drm/nouveau/dispnv50/disp.c +++ b/drivers/gpu/drm/nouveau/dispnv50/disp.c @@ -1354,12 +1354,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) {