From patchwork Wed Apr 7 08:33:34 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Zhen Lei X-Patchwork-Id: 416672 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp275419jai; Wed, 7 Apr 2021 01:53:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxM9WLuQWONjRlmQqkmVP0r1EA82E0jJD2wrGtB9UrRPdfOAyuwTyTWcXrHWEITwV0NqEyx X-Received: by 2002:a63:fc59:: with SMTP id r25mr2297573pgk.305.1617785597804; Wed, 07 Apr 2021 01:53:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617785597; cv=none; d=google.com; s=arc-20160816; b=YqpmRfl7xHjs3jqDHB2n1/7bd587JWWq5ANw5FNlZjmT5JQekCUoQ8FP19ehgm1l+s dTt5Mla3lIZB7xSv7V79yMiVX+b7ZtvknAZ7RAc5ic0CUhcIeVNfYbmmaZowRXMjHWeV 1qPYbXr+tSK1Om7SaYIi5Q3Ang/11CIAequkD5/ZCnEXTdqfpEkroKqcIT3LZAPcZfup PAImkQ0UwSV7gCr93BYg1B2fgDoaxZvu46FZ9oOChfibSZAfzN/zYmLKWP/51DrNanJk tkAQhogf8Ocg/SgW/od9oOt6i37KoXOzrDLoLHefqMxk1BRKzR+KCawFBDICFVb1L37i 4yaQ== 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:message-id:date:subject:to:from :delivered-to; bh=powI4giJZdosNHKeOSGsEN6HCCvXUmSdnV7pQUj9eS8=; b=mlcZPP9JtHX17rKy25O2OMEnfNiUDJ/ZsqmSVXOg9DxfdydUpLTnfqOk5HXwXJv0J8 64QffB2PE2ZIEkqbC5nklNgdPngTeNMqI4qrJX/IFb+Sm/armcO3fLCEl+a+UffqJcfp mYik6jszYkwoQsAVeyQjw9dM5oXlPLiQ2FSgcKBA7QX8NWxvmzwqECQAZMMP49o4pkfs 0pJlptKDroRB5TgHgncLJ3gloP417CpnCkLmRvTRoI6ZXau0W1gnR90RxkHtPEnHQ9ti X0Euo072Eotqo19Icsvntp0HTrxPmhO3KqtmGPzI1+YiV2kPZSFb2vlu5pZW9oNwA9nL 1L/Q== ARC-Authentication-Results: i=1; mx.google.com; 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=huawei.com Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id e17si22547158pff.42.2021.04.07.01.53.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Apr 2021 01:53:17 -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; 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=huawei.com Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id BDA0F6E17E; Wed, 7 Apr 2021 08:53:14 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from szxga04-in.huawei.com (szxga04-in.huawei.com [45.249.212.190]) by gabe.freedesktop.org (Postfix) with ESMTPS id A7E816E17E; Wed, 7 Apr 2021 08:53:13 +0000 (UTC) Received: from DGGEMS414-HUB.china.huawei.com (unknown [172.30.72.58]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4FFdQn4KwKz19L60; Wed, 7 Apr 2021 16:50:57 +0800 (CST) Received: from thunder-town.china.huawei.com (10.174.179.202) by DGGEMS414-HUB.china.huawei.com (10.3.19.214) with Microsoft SMTP Server id 14.3.498.0; Wed, 7 Apr 2021 16:52:58 +0800 From: Zhen Lei To: Rob Clark , Sean Paul , David Airlie , Daniel Vetter , linux-arm-msm , dri-devel , freedreno , linux-kernel Subject: [PATCH 1/1] drm/msm/dpu: remove unused local variable 'cmd_enc' Date: Wed, 7 Apr 2021 16:33:34 +0800 Message-ID: <20210407083334.2762-1-thunder.leizhen@huawei.com> X-Mailer: git-send-email 2.26.0.windows.1 MIME-Version: 1.0 X-Originating-IP: [10.174.179.202] X-CFilter-Loop: Reflected 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: AngeloGioacchino Del Regno , Zhen Lei Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Fixes the following W=1 kernel build warning: drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_cmd.c: In function ‘dpu_encoder_phys_cmd_wait_for_commit_done’: drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_cmd.c:688:31: warning: variable ‘cmd_enc’ set but not used [-Wunused-but-set-variable] Fixes: fe286893ed34 ("drm/msm/dpu: Remove unused call in wait_for_commit_done") Reported-by: Hulk Robot Signed-off-by: Zhen Lei Reviewed-by: Abhinav Kumar --- drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_cmd.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_cmd.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_cmd.c index b2be39b9144e449..088900841bf8baa 100644 --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_cmd.c +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_cmd.c @@ -685,10 +685,6 @@ static int dpu_encoder_phys_cmd_wait_for_tx_complete( static int dpu_encoder_phys_cmd_wait_for_commit_done( struct dpu_encoder_phys *phys_enc) { - struct dpu_encoder_phys_cmd *cmd_enc; - - cmd_enc = to_dpu_encoder_phys_cmd(phys_enc); - /* only required for master controller */ if (!dpu_encoder_phys_cmd_is_master(phys_enc)) return 0;