From patchwork Fri Apr 16 14:36:47 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 422506 Delivered-To: patch@linaro.org Received: by 2002:a02:6a6f:0:0:0:0:0 with SMTP id m47csp447293jaf; Fri, 16 Apr 2021 07:37:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxHeYYGJMSOn9K0hiPxa3WMKv6BnEH9tOLS6AYmtCztrNSQmbsv2crwKCCUZqQO6ryJa2lp X-Received: by 2002:a62:63c7:0:b029:251:4c9a:5744 with SMTP id x190-20020a6263c70000b02902514c9a5744mr8515942pfb.39.1618583860104; Fri, 16 Apr 2021 07:37:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618583860; cv=none; d=google.com; s=arc-20160816; b=EmTklfQYmng/pHxZDip3AjhTTYcUJlXBmOGveae89Cabq7ptjHtgd8XzBdrcV9H+nu f0CIg9l32AmVgnTzi6tcmTfA0MrwuEm87U8XPfSGNzQo/qyonFFsyuAR4JAHHkLKUSIj phxFgcuh1EToINg1z6P3FOqBD4BEBZB4JC684c0/C5VPEoULF3sl8aFmkarhXMudrvPo HWED3eBm4MJ+X2hPcFnMLiW/xIq5onzPeMIKPqbamKB//BvndqwGJ9nneLGWYheRiKCn tTbPAmdJKPeB53S7Xaew3cBZYMtkr4tk4TlPx7p8R0B9sUZiCTOdoszxO2VnnSw9fdDm dKCw== 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=yHR+HDJo2wd7cBio0YiLAhMA6L/JfZb+poOOrQl0cEM=; b=Mta2pn34eya9120cFD/EMvCAYplpRCHLubfvoTAiCtEItB+e3VIqFSnrcSk7PcH/3r GDUkKGMT+7vFd5WTTazhuLviSLHevUc/dWrANiG8Ap8qNPtzwoMnPuWV2RccHyNFV/lE KTAG7OBBhYn7Rg6YR3qxzmtMlKwkjlJChHcvHFbLcOyqdeQBV1FC52WKKmpQq43SdCe+ CM3So6b1CMC2pUnoHw1zcAOue/QdHKM3BiTCrgUoI8A4gYfTBHIunsDuyplwp6NF0euV fPqp/Eu6E02cB53GDa1afNsqNmxWfi6SbkoFWP2pcAPmxS2Btnz4kQHZSWC+BWk7XPxG GW+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=rAeQAepk; 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 x1si6255450pgp.241.2021.04.16.07.37.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Apr 2021 07:37:40 -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=rAeQAepk; 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 AB31B6EBB5; Fri, 16 Apr 2021 14:37:35 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-ej1-x636.google.com (mail-ej1-x636.google.com [IPv6:2a00:1450:4864:20::636]) by gabe.freedesktop.org (Postfix) with ESMTPS id B75896EBAA for ; Fri, 16 Apr 2021 14:37:33 +0000 (UTC) Received: by mail-ej1-x636.google.com with SMTP id g5so35778128ejx.0 for ; Fri, 16 Apr 2021 07:37:33 -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=1EV1/WI0XFtiI+21vP83s/uEYxGv7mm0ay0nKpA5C64=; b=rAeQAepkPGd8RRBrjx7A0S/HNVWkMJN3LZ/HO3Uq44xiLqTZo99xBiIHSI8h8smrSk D3mN1W8ok0u9i/hZqpr9qPfK+TWzr+JKdNXL11/7hckcjzWm2CD0pF2PkHCIuMuVwHZl ry3u1F55TjgPmXuMC9/hAuIhzbRcI8iIBBP8OXP2o69Jd8OLahC9JXoKetjacP4mVMz1 qKKosfQYMv2DmgONKYJuqQcIyQbG8jg5gsLFkyG6nF9W68YlSe1cSyyZKQBYGf/ecePU RO/CIZBwdMAwcBcO1pvVKhUKVHGHAwO4ilcjB0Cz56Sp2Plru6Xux8BWWlwHvlI/y3/s WuJA== 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=1EV1/WI0XFtiI+21vP83s/uEYxGv7mm0ay0nKpA5C64=; b=klzBPzXYQJm5aSxWCbRSRzgx6bdXhiR5XiWGr/JLGMOkWIVrtHs2VfB1lJF2bNtl/W 7PnRmxXc4AvmQwpIbr2S0nd4uZbIQQ1KuGQnFcPTtA+SAKd7V5ms9gV1RA4seck7nmkd 7ijNLOP+JeYPyQgEf/x3nc64PkXiICqjAqNhDf3BpcF3hV54lYiFnG2zd96/EXXIJX+s iekCI/ROvf4n6no+geJHzEOeArysA1eRtA3Wjvj7mZJtG+on/ooCCtASm2nE6p8XIgrt sLHyohxxluq6gPs0owm/N1o1dW+HUhsSfJkSFZ36EmJhiouQlTpMw4bEfo+5E+NQr/LZ W8Vg== X-Gm-Message-State: AOAM531hlC5sjK4evcVXdBXUuej2nVWcVzcp+qQ6M7lew8Ynd0djp4z/ e1rpt/7VSAwXcwEp8I3N8GHCnQ== X-Received: by 2002:a17:906:704a:: with SMTP id r10mr8736436ejj.312.1618583852460; Fri, 16 Apr 2021 07:37:32 -0700 (PDT) Received: from dell.default ([91.110.221.215]) by smtp.gmail.com with ESMTPSA id j10sm1326523ejk.93.2021.04.16.07.37.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Apr 2021 07:37:31 -0700 (PDT) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 02/40] drm/nouveau/dispnv50/disp: Remove unused variable 'ret' Date: Fri, 16 Apr 2021 15:36:47 +0100 Message-Id: <20210416143725.2769053-3-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:1381: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 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu/drm/nouveau/dispnv50/disp.c b/drivers/gpu/drm/nouveau/dispnv50/disp.c index 1c9c0cdf85dbc..4801aafd9552b 100644 --- a/drivers/gpu/drm/nouveau/dispnv50/disp.c +++ b/drivers/gpu/drm/nouveau/dispnv50/disp.c @@ -1410,10 +1410,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) {