Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp198140pxk; Wed, 16 Sep 2020 01:55:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz2CaeJ6xUJj7FRWAu5G1mxI1SSCPOex88jHr5E3KJeooFvLe+bW5O56cmmSgKpT+L2ybCu X-Received: by 2002:a17:906:e4f:: with SMTP id q15mr25447844eji.155.1600246500440; Wed, 16 Sep 2020 01:55:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600246500; cv=none; d=google.com; s=arc-20160816; b=YJAe7DkLebH/qn7WMXqB7qLPx3uvpeevNGqqA4zTLz8Z7K4clQv/b9KS2BToVx9hrW pfKgmHhPbX/C5xfUTK5lWatkrHDSe12fP7WrS2HR5rXqSF4wiMXiRhyeiSq6FpQ9/VZO rTD289pCAU9J8V0PVk5GJvhpkH9KkSmDoX+CRZOk6OW6QDbqFjkKwoM2lZd+/67LBdnZ CXGVv3dhlKlxRv5hmuII/naqgEMSGl5hVPAmPMpYQ/fCWxwkjWSDV216PlM4jUWn1Eea Ms2M5S7z0K8rSx+LFhKmDXp+gNslGiJ6CdL7Ca0CHXB1YQ6mnJ5QCzSXK2qhq5YaHde5 bN3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=wRveT7JDIWt6Z5U1wOE0e79mx+wrFdDiW3QPRHDlNtM=; b=FhmwiYRDhgmbq1bflGrZ136btBVYnLe1MIy8svPwQSbiZuSFEevUoeewuJESChKbbC 9AQ+Xa+Aau3R7Yf1aNI4tOMr6Il2NVNBhrt+sroaBluJPtywKhgrRo141bVYyoTKikl7 RTBPzpU2NtF4Gl+GJ8bdW0CqO3owKDJnUa2E+DpyeeNOfyoQeYJIyCcNrFu1KP+gwBTT NhFC+h9q4fQRvD7ySweZECL1/q6EaB1y8xtxryg+yb8kYuXtHfJIaU+xNLJ6Nxc2QIqc Pltm/zPFdfvKTSEdvXo7e+M470i//wzq0FoXWtPC/AvX9xUtGbIQSG6lOlgMH5RvBzFM gc4A== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a5si11832820edx.243.2020.09.16.01.54.38; Wed, 16 Sep 2020 01:55:00 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726438AbgIPIyI (ORCPT + 99 others); Wed, 16 Sep 2020 04:54:08 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:53728 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726068AbgIPIyH (ORCPT ); Wed, 16 Sep 2020 04:54:07 -0400 Received: from DGGEMS404-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 802145808EA40AEE348A; Wed, 16 Sep 2020 16:54:05 +0800 (CST) Received: from huawei.com (10.69.192.56) by DGGEMS404-HUB.china.huawei.com (10.3.19.204) with Microsoft SMTP Server id 14.3.487.0; Wed, 16 Sep 2020 16:54:00 +0800 From: Luo Jiaxing To: , CC: , , , , , , , , , Subject: [PATCH] drm/msm/dpu: remove unused variables new_cnt and old_cnt in dpu_encoder_phys_vid_vblank_irq() Date: Wed, 16 Sep 2020 16:51:38 +0800 Message-ID: <1600246298-16120-1-git-send-email-luojiaxing@huawei.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.69.192.56] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We found two unused variables new_cnt and old_cnt when build kernel with W=1. So delete it. Signed-off-by: Luo Jiaxing --- drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_vid.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_vid.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_vid.c index b5a4905..377ce8d 100644 --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_vid.c +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_vid.c @@ -298,7 +298,6 @@ static void dpu_encoder_phys_vid_vblank_irq(void *arg, int irq_idx) struct dpu_hw_ctl *hw_ctl; unsigned long lock_flags; u32 flush_register = 0; - int new_cnt = -1, old_cnt = -1; hw_ctl = phys_enc->hw_ctl; @@ -308,7 +307,7 @@ static void dpu_encoder_phys_vid_vblank_irq(void *arg, int irq_idx) phys_enc->parent_ops->handle_vblank_virt(phys_enc->parent, phys_enc); - old_cnt = atomic_read(&phys_enc->pending_kickoff_cnt); + atomic_read(&phys_enc->pending_kickoff_cnt); /* * only decrement the pending flush count if we've actually flushed @@ -320,8 +319,7 @@ static void dpu_encoder_phys_vid_vblank_irq(void *arg, int irq_idx) flush_register = hw_ctl->ops.get_flush_register(hw_ctl); if (!(flush_register & hw_ctl->ops.get_pending_flush(hw_ctl))) - new_cnt = atomic_add_unless(&phys_enc->pending_kickoff_cnt, - -1, 0); + atomic_add_unless(&phys_enc->pending_kickoff_cnt, -1, 0); spin_unlock_irqrestore(phys_enc->enc_spinlock, lock_flags); /* Signal any waiting atomic commit thread */ -- 2.7.4