From patchwork Wed May 25 07:39:12 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 12860741 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 528FBC433F5 for ; Wed, 25 May 2022 07:39:32 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 58E4310EFF0; Wed, 25 May 2022 07:39:31 +0000 (UTC) Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by gabe.freedesktop.org (Postfix) with ESMTPS id EF9FE10EFF0; Wed, 25 May 2022 07:39:29 +0000 (UTC) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id A688F6178E; Wed, 25 May 2022 07:39:28 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9A7D9C385B8; Wed, 25 May 2022 07:39:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1653464368; bh=3lBmglmHAxoDZ44iJuSmettyMYwVV1Evj7p3iUZ9x0U=; h=From:To:Cc:Subject:Date:From; b=E5BoMBSZ9bkAtH4L0sTwMHzAC3HVVRPC7HsmJEV474UQAHqdFoLhNRTHZXLnziYk0 ivHTCc0/BRnIydyZYHbfh61kDz1exEt4JVncabJrVidwT6IB2YBCIjTVr+19xTEA3T aLCtoJdXRP+LvPLYwr/9KflAosw1M7VbG/MXUC5J069Z8+5RisrYIRju5biAAPBQuc dAkWCgU1sbQfBNrP3s/PBZPYhSmKiGjxfnuWwkigUQ5/ncTj210oZDByPzfyMohFYv 5Xjef8YDTbvJ2nVG/Qx5o7zazeC5epGa0OOiKUij1UXZxy9wu2tSAhvC2lqHJNuTqy T2jXM45uI2v5Q== From: Vinod Koul To: Dmitry Baryshkov Subject: [PATCH v2] drm/msm/disp/dpu1: remove superfluous init Date: Wed, 25 May 2022 13:09:12 +0530 Message-Id: <20220525073912.2706505-1-vkoul@kernel.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 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: kernel test robot , linux-arm-msm@vger.kernel.org, Abhinav Kumar , dri-devel@lists.freedesktop.org, Bjorn Andersson , Vinod Koul , freedreno@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Commit 58dca9810749 ("drm/msm/disp/dpu1: Add support for DSC in encoder") added dsc_common_mode variable which was set to zero but then again programmed, so drop the superfluous init. Fixes: 58dca9810749 ("drm/msm/disp/dpu1: Add support for DSC in encoder") Reported-by: kernel test robot Reviewed-by: Dmitry Baryshkov Reviewed-by: Abhinav Kumar Signed-off-by: Vinod Koul --- changes in v2: - add r-b from Dmitry & Abhinav - fix typo for superfluous drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c index 51f24ba68375..388125c8bda1 100644 --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c @@ -1798,7 +1798,6 @@ static void dpu_encoder_prep_dsc(struct dpu_encoder_virt *dpu_enc, } } - dsc_common_mode = 0; pic_width = dsc->drm->pic_width; dsc_common_mode = DSC_MODE_MULTIPLEX | DSC_MODE_SPLIT_PANEL;