From patchwork Fri Apr 16 14:36:55 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 422511 Delivered-To: patch@linaro.org Received: by 2002:a02:6a6f:0:0:0:0:0 with SMTP id m47csp447518jaf; Fri, 16 Apr 2021 07:37:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz9GEZUY/Xsd8MFk6CePasTTMhXGvfQ/psinQ4eEC55ogCk4Q6yRTSdcUipKeB5Ruj0KFWr X-Received: by 2002:a17:90a:8b97:: with SMTP id z23mr9620493pjn.131.1618583877193; Fri, 16 Apr 2021 07:37:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618583877; cv=none; d=google.com; s=arc-20160816; b=dE7mmAQu6TjdzQr0v2h3k9Rlv9AOCZenqbiLQlccQtWwCTUpDg9s31TBRSGL/lxYy1 XyytWxm8nsJ9fD0nfHhDoUdCFC+9naa6vRmQbReWkmiD5eSmJMpp4auPxvuiWPFlpIRU DdbWNlQUoouDfzBQOLB3qdTFBie7P9BqVtWg51YzUVkTNdpcH2mdvvOK/31vFRue2NKb 3cvZyL98k1ZoQAY3U9OFRtZYBk1ChVjv65xdAd+NaxLKp7LWrOY1UgKvTVszsxZfXBc2 zgYpaJ7s7pamh8EXOIalgP6OtnYLqWBOQBZ1J/DBhuC1V1OHAe/ymfBJ/8Moglw1tt80 HA6A== 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=h3qF4L1vyM0LanfBJuHyx5pZC17uovbVtjDfJFonlPY=; b=r0bLBVic3I9RvkFma4n0ilUbS3cXz/Jt+F2VwogFb0gYgHh7Vx6ezDlf/LM2f2AN43 B9WaFcm5R9C23Uc+TsjOnShV+y3NqOZl4BQRmVcgglAuFz1miZKJb7wVUIo63cVeg5Ys Pp1ThFS5VHnAcegWDGM9BAhL7K7245M02OcGy6kEt2edG03MzhS+tELYqt5sa8IMC0gT ZF8EvIngyd4thU+ytFVkbWjo1CjxZQsO0JFIUCzE/QORJsq1Fd9VRV1DnkfsbVk+oVzB Rm6551O2f0foMutux0SayIjuk7I4u5TaNbY6msLE3NtyvNxFK3BIL595CI6Y6qu0NiOI 7leg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=oCLqBdEQ; 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 q3si4690825pfk.340.2021.04.16.07.37.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Apr 2021 07:37:57 -0700 (PDT) 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=oCLqBdEQ; 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 511226EC02; Fri, 16 Apr 2021 14:37:44 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-ej1-x633.google.com (mail-ej1-x633.google.com [IPv6:2a00:1450:4864:20::633]) by gabe.freedesktop.org (Postfix) with ESMTPS id DD89D6EC03 for ; Fri, 16 Apr 2021 14:37:42 +0000 (UTC) Received: by mail-ej1-x633.google.com with SMTP id l4so42443886ejc.10 for ; Fri, 16 Apr 2021 07:37:42 -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=FQnjaWEPVzF4Yj7Y7yqsosTBBDqQ/sZsDTFNe0Jq4bY=; b=oCLqBdEQeBIV+juKLGkSxgdhLcddfY7D8sZ1UyNCHuX3TKd9mpvKturRJKN2Mm9fFv irFEttwHBDbPhPdY8WEnT4moT8TqjkIQEkFPxf22w1UWuDAOI/N1Bpr5xyxbVG0fcsL6 AxKJ6N4GEy4y1At9rrYNSqhTlk+mGf8xzTF69Zq5oAQ47yrA2WAWMRi/BX5tYPTymdUG 1Vd5sLlAqH6/Se7ns0lMw2T9D49Rb5jrGMeSp+d79DgGUtzVarzLgui+oAsjDsQQ3FwB 82YFkN6ATYSWeClc7Q1q5NhEMvipeY65LTqc8KucrM6wg4ApzEjVyHp2uRBSEurLtcAn prPg== 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=FQnjaWEPVzF4Yj7Y7yqsosTBBDqQ/sZsDTFNe0Jq4bY=; b=ozZPoRsZ98nVJYlpL6h5rrSMDNf3eZ+fn2nTmyGFHUzI5gah10XskB4psSBApK02qp uDLNXeE5QM8/GsSPzmGV9vyOAyBjYztHzSmNNLpwjWYcMsGOliPlazfV+fcloKHSOYxd 91BobJ/yLPGaDwnzC4+BHUAHAGOUZ/5D5+tQMh82spnW8oOkHH0fCHsikh7A1oBIzgKC NsEaQOMuLFve3ww1B+/m+uQNcCmIbLBHD4nzWvWf/vO0Ex0aVJSE/dXmxcKXw+Q0AsQ9 rs2zAd0GiVUkm/vc56PWZRi7nh93Vkr08to6ikHuKR/bwY9DCX7mTCA1MukVN+NkvPjr TaDw== X-Gm-Message-State: AOAM533iAREkF9oWr/KeqDo6w/5R66hV93YjZyTGXU/V734LgqqlYy+7 0Uh+WoBq77WQWnL+z28y9sP1qQ== X-Received: by 2002:a17:906:7806:: with SMTP id u6mr8119075ejm.130.1618583861433; Fri, 16 Apr 2021 07:37:41 -0700 (PDT) Received: from dell.default ([91.110.221.215]) by smtp.gmail.com with ESMTPSA id j10sm1326523ejk.93.2021.04.16.07.37.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Apr 2021 07:37:40 -0700 (PDT) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 10/40] drm/nouveau/dispnv50/disp: Remove unused variable 'ret' from function returning void Date: Fri, 16 Apr 2021 15:36:55 +0100 Message-Id: <20210416143725.2769053-11-lee.jones@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210416143725.2769053-1-lee.jones@linaro.org> References: <20210416143725.2769053-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 4801aafd9552b..351f954989530 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) {