Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp2621439ioo; Tue, 24 May 2022 02:03:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxInr8AEmEryoMLDavIMVZj91jqqmopLnImIRU8KoXkDJT2yhubfVHpxEaTrbkFClPAfPGJ X-Received: by 2002:a05:6402:2384:b0:42b:42c7:f63e with SMTP id j4-20020a056402238400b0042b42c7f63emr14449158eda.216.1653383023903; Tue, 24 May 2022 02:03:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653383023; cv=none; d=google.com; s=arc-20160816; b=U6pAiayFX1kCQ28Cz/mICM5pbkEPPFxESnBuWxl5h6x3mBAUEx/zH86Wjyu56DQUF/ LNrTW9EnoZcoeNDO6YaHd5It95a60SNo/xaFvy1uYf35XPQ2vM9np+y9W7lShUMHJa7c 1YoMJKrca/hJZcqSi8l0hpIgRyov0h0BIIIiN1hHGvU43Ckey0uNZwJHaIOmZoF2GFgk h4W4Q+UYV8EQzrjB/FpnJpzSQLRaVXTuVdGzzDsTbhMEgEu4AtzDGVrI59lBKzJDUjUY XZSuD+jjWYOjphLQaafkPN+nH5FSvplXoNqONJ3bovqD/7EglLNx8O/N0KXoNjCJcRRu ir9Q== 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=MKgT6xB1MakHq1YAIiccETAnlBL2vbcgqYYa72N9jSs=; b=HcU1OAYhWdRFS5S9vYgRNAUrT0jMG8dyUpwOTz4j7r+darnvH6i5AlkCXune944mKV 3L6ec26rBw266srqeka5yGhG3P93RL0vxcIq99E8Aiq4B9aOWAwfhJ3ccD7WWfZ68MYT fBwQDsvlz8/ec78Nf6FJcJgoJ3vXxWn+1ExGO2Az0kc6OkbWQIQcaJVFnYk1sG2PXSdV eZGI8ByTYR69f1igZtR7SZ35KkLs8UJ/j5JOZ8IP60ODkaSY0U2DvS/lDZNcsNqhve+e A8QPkHqXiazMfGOV5upfFFcPU87vmci8LSzfBX1XBQZHL7Or/nIhyx62QpLRg6uTR7CV X9Hg== 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 hs32-20020a1709073ea000b006e8439b41d1si3040474ejc.69.2022.05.24.02.03.17; Tue, 24 May 2022 02:03:43 -0700 (PDT) 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 S231840AbiEXIO0 (ORCPT + 99 others); Tue, 24 May 2022 04:14:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47988 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231865AbiEXIOY (ORCPT ); Tue, 24 May 2022 04:14:24 -0400 Received: from out30-131.freemail.mail.aliyun.com (out30-131.freemail.mail.aliyun.com [115.124.30.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CAABF5DA76; Tue, 24 May 2022 01:14:23 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R451e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04423;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=14;SR=0;TI=SMTPD_---0VEH.xWd_1653380055; Received: from localhost(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0VEH.xWd_1653380055) by smtp.aliyun-inc.com(127.0.0.1); Tue, 24 May 2022 16:14:20 +0800 From: Jiapeng Chong To: robdclark@gmail.com Cc: quic_abhinavk@quicinc.com, dmitry.baryshkov@linaro.org, sean@poorly.run, airlied@linux.ie, daniel@ffwll.ch, vkoul@kernel.org, quic_khsieh@quicinc.com, linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org, Jiapeng Chong , Abaci Robot Subject: [PATCH] drm/msm/dpu: Remove unused code Date: Tue, 24 May 2022 16:14:13 +0800 Message-Id: <20220524081413.37895-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,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,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 Eliminate the follow clang warning: drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c:544:33: warning: variable ‘mode’ set but not used [-Wunused-but-set-variable]. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c index 52516eb20cb8..658171799b9a 100644 --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c @@ -541,7 +541,6 @@ static int dpu_encoder_virt_atomic_check( struct dpu_encoder_virt *dpu_enc; struct msm_drm_private *priv; struct dpu_kms *dpu_kms; - const struct drm_display_mode *mode; struct drm_display_mode *adj_mode; struct msm_display_topology topology; struct dpu_global_state *global_state; @@ -559,7 +558,6 @@ static int dpu_encoder_virt_atomic_check( priv = drm_enc->dev->dev_private; dpu_kms = to_dpu_kms(priv->kms); - mode = &crtc_state->mode; adj_mode = &crtc_state->adjusted_mode; global_state = dpu_kms_get_global_state(crtc_state->state); if (IS_ERR(global_state)) -- 2.20.1.7.g153144c