Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp4318458rwb; Mon, 16 Jan 2023 22:14:05 -0800 (PST) X-Google-Smtp-Source: AMrXdXvpkV2w9WOacK6xzwEhsXuH92+AMUz2wY0ASBIUpbtnEusAovEEDQ+ONZ8Nli/vuswStSmf X-Received: by 2002:a17:90a:4107:b0:227:838:11a5 with SMTP id u7-20020a17090a410700b00227083811a5mr1992899pjf.31.1673936045074; Mon, 16 Jan 2023 22:14:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673936045; cv=none; d=google.com; s=arc-20160816; b=yNVA9k9VFsbWuUfZpG5qT1rJCa9kkFMPMRWFnM1p2CIB1Ysmb7isE975w86O8Wo3rU dF3ttLOpDnNqjsMFP/HIN0K5SK0O/R3eJWRYDPfVBL4j3WXdK9gWOjIOFy2snFnqS5xz Z022nIErIIxSvFh9V978o4/7xX+yw2y9cBdG71JOUOydm0mESA7eyHMObPIFfAU7wzNH 6yH5yJqBZridDDvphwiRtn1KCv56DS5F6U5dNxAlCnIAvKXfbTYrxMutRUbXDpXT7mlF l0hZz+OuGEEaf7BZDozGnjrgPZFNMS8olwDJxABt6fBqvn31m6C5O5MVmR4Hki665YHi xWRw== 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=agZKUXhiO6L2PMN00AK4XwGxoXYLrYtz0/HqkC1Bwwc=; b=fccannjdDD8Hu0fL1tuu6C7QDQsOg/GGV5oQaOOj8Ai8GYG0Lw8ISg2DcCEj6cEvZp 5dGOlnoyadO75NmbP5Ew2svu3IOnOKhWz7ypPedf8K9azi3lgFEJnwkyi65J1gZRGu0o NvbDFxXXMuFVfGzbR84kbZdtIycEO/Kk/xcGtmleBFPCMo+3/2LYya9fGOA5yA7atD5/ ZEPN7WSA/+5XR/8wzuIBxPtDCDy+lYWEgz+4Xz/MEByjnoTBK/slhOAu5sKbNtd44Gjy LfvMsTQK/EFvqsy74c0TXLEGuR+yYAW1IWBt6mwLS5aT1C/XWHNtO2zMgPQtqdhH4xGL vmZg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r26-20020a635d1a000000b00479568ac352si32234412pgb.526.2023.01.16.22.13.58; Mon, 16 Jan 2023 22:14:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S235442AbjAQF6D (ORCPT + 50 others); Tue, 17 Jan 2023 00:58:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48672 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235265AbjAQF54 (ORCPT ); Tue, 17 Jan 2023 00:57:56 -0500 Received: from out30-130.freemail.mail.aliyun.com (out30-130.freemail.mail.aliyun.com [115.124.30.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3CDC01EFC7 for ; Mon, 16 Jan 2023 21:57:54 -0800 (PST) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R171e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046059;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=10;SR=0;TI=SMTPD_---0VZlg57-_1673935061; Received: from localhost(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0VZlg57-_1673935061) by smtp.aliyun-inc.com; Tue, 17 Jan 2023 13:57:51 +0800 From: Jiapeng Chong To: alexander.deucher@amd.com Cc: christian.koenig@amd.com, Xinhui.Pan@amd.com, airlied@gmail.com, daniel@ffwll.ch, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Jiapeng Chong , Abaci Robot Subject: [PATCH 1/3] drm/amd/display: Remove the unused variable optc Date: Tue, 17 Jan 2023 13:57:34 +0800 Message-Id: <20230117055736.50883-1-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY,USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Variable optc is not effectively used, so delete it. drivers/gpu/drm/amd/amdgpu/../display/dc/dcn30/dcn30_hwseq.c:325:27: warning: variable ‘optc’ set but not used. Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=3782 Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/gpu/drm/amd/display/dc/dcn30/dcn30_hwseq.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/dcn30/dcn30_hwseq.c b/drivers/gpu/drm/amd/display/dc/dcn30/dcn30_hwseq.c index 7360b3ce4283..bae6e3b52546 100644 --- a/drivers/gpu/drm/amd/display/dc/dcn30/dcn30_hwseq.c +++ b/drivers/gpu/drm/amd/display/dc/dcn30/dcn30_hwseq.c @@ -322,13 +322,11 @@ void dcn30_enable_writeback( { struct dwbc *dwb; struct mcif_wb *mcif_wb; - struct timing_generator *optc; dwb = dc->res_pool->dwbc[wb_info->dwb_pipe_inst]; mcif_wb = dc->res_pool->mcif_wb[wb_info->dwb_pipe_inst]; /* set the OPTC source mux */ - optc = dc->res_pool->timing_generators[dwb->otg_inst]; DC_LOG_DWB("%s dwb_pipe_inst = %d, mpcc_inst = %d",\ __func__, wb_info->dwb_pipe_inst,\ wb_info->mpcc_inst); -- 2.20.1.7.g153144c