Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp862710pxf; Wed, 7 Apr 2021 13:34:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwEeOXGf+qQaC61ZNMIoSStwHWbmgSChbmwnGRt4KVuT2bfr1+tU3fwq7CHhlRtCHxtNRcy X-Received: by 2002:a05:6602:1c9:: with SMTP id w9mr3909635iot.201.1617827655075; Wed, 07 Apr 2021 13:34:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617827655; cv=none; d=google.com; s=arc-20160816; b=lVKFQwzNnfNcDQLi/SubTn9OYQ5GKiVkJzIAbwLdsurDDUORXs0TtV4pJWR1nKVqhl l39JJIrru4TJDqhFs1LkgBhcI0t85Ah+C3HsSLptGiY4jv22sOhxBA0lJ83lPwT1UMoG 8HqZjDE4pGNoYBrqO864RWe2C6m3qhi6YnfliMOhLKsrAS06R/xFIX0phqn2riOeXnEQ jiPI7C9Yo/8BPqXbdRmn2Sm085lyDyH24lgrkFZ8+gsY9RAup6ofGuYM+PiqgM/U++H4 FLOJ5ypziofvMl4DekcXhP7x2GPd5+CzFnJi+mLLDfxXFCr/goyQcNGIB6KctaBvw+Ov R3RA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=bZPR21QRGHEYqHFeuP+O4SgCNuOeed7IeiHV1xHIFCk=; b=tkZGHyqCvcan2PcZP+0d2GuQSF5ZXgdI7s8Qrmx9nioyGUkeHlJtqjlhY72UgTEkaw On9MAuEEYrrGuPzOlDlqhiw7IiY2fJUXevAsZvwlyytz5c384ObDqPcW/R1HkchzukF/ aSOOfydLkbbQiov322jvWFRq41QV2USfPtmQY82zqJVWfo96yrT1yIFd2kdw+PwkbjQg Gyvq0Z4a1zqlm3ASeDlzkPXYSCmyYGQld2eVRYRApnoIFx2VqJaDftuVqiYqYkvEZCK3 taP6Sc3z1FDPBx+xrURimkJO0KgKpj9x5cups1v9EyXduJBWhlEoRVTnYgHrkWdtIhQm CMlg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g15si13519070ilf.145.2021.04.07.13.34.02; Wed, 07 Apr 2021 13:34:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234413AbhDGIZQ (ORCPT + 99 others); Wed, 7 Apr 2021 04:25:16 -0400 Received: from out30-54.freemail.mail.aliyun.com ([115.124.30.54]:44406 "EHLO out30-54.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232650AbhDGIZQ (ORCPT ); Wed, 7 Apr 2021 04:25:16 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R681e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04394;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=7;SR=0;TI=SMTPD_---0UUmMqoH_1617783897; Received: from j63c13417.sqa.eu95.tbsite.net(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0UUmMqoH_1617783897) by smtp.aliyun-inc.com(127.0.0.1); Wed, 07 Apr 2021 16:25:04 +0800 From: Jiapeng Chong To: bskeggs@redhat.com Cc: airlied@linux.ie, daniel@ffwll.ch, dri-devel@lists.freedesktop.org, nouveau@lists.freedesktop.org, linux-kernel@vger.kernel.org, Jiapeng Chong Subject: [PATCH] drm/nouveau/kms/nv50-: remove unused variable Date: Wed, 7 Apr 2021 16:24:56 +0800 Message-Id: <1617783896-106243-1-git-send-email-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following gcc warning: drivers/gpu/drm/nouveau/dispnv50/disp.c:1389:6: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable]. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/gpu/drm/nouveau/dispnv50/disp.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/nouveau/dispnv50/disp.c b/drivers/gpu/drm/nouveau/dispnv50/disp.c index 1c9c0cd..b75ede1 100644 --- a/drivers/gpu/drm/nouveau/dispnv50/disp.c +++ b/drivers/gpu/drm/nouveau/dispnv50/disp.c @@ -1386,12 +1386,10 @@ struct nouveau_encoder *nv50_real_outp(struct drm_encoder *encoder) { 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); - - ret = drm_dp_update_payload_part2(&mstm->mgr); + drm_dp_check_act_status(&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) { -- 1.8.3.1