From patchwork Tue Jun 25 10:10:30 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manikandan Muralidharan X-Patchwork-Id: 13710817 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 176C7C30653 for ; Tue, 25 Jun 2024 10:11:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type: Content-Transfer-Encoding:MIME-Version:Message-ID:Date:Subject:CC:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=1sLTNUqhgnCwb3Ty+m+hrhIWCFN6caajoFTPhp4k1aE=; b=lubMAQMgqF6mXCkRM1chrFURqt mavEbbc1sCflDcDVN+CQCw586kS0pEK0s0JD3Ego+7RvrExIYpDmq9afgykUSAVPqiGDvxFzBKRuJ D0dIGlT85VFzfITiPu3u3TNcyxqWj9U1Agbd28//8PTeoWOlL4VP3JabPRQL4g1ZEwEr2SWtSsc+G sceaaycrFglQKDddVgk0y661umFvtceF4tuclvyO1p8wqZF1dzV9kDR5u2CP31mEOmUBronqaHVjU CxvntauLOTPcG436vVYsM1V5wc32cbqsY9ccMoF8qG6tM60UFoFgUTzAi2RZYoSFErcxOI9rWWGKN kNbZSAbA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sM38e-00000002MUT-3XE3; Tue, 25 Jun 2024 10:11:00 +0000 Received: from esa.microchip.iphmx.com ([68.232.153.233]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sM38Y-00000002MTs-2x1j for linux-arm-kernel@lists.infradead.org; Tue, 25 Jun 2024 10:10:55 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1719310254; x=1750846254; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=MSWdBc8PKBdJ0A0i1o2EiwRYZcdlsnekjW41CeUrTk4=; b=V/h8AgXkNsuKuQxRHcC2ALLuxwsdhi0uiTEDaRO17paDEj8m2O8TYTPF 5y/R9brAw3T6Yj1qaIaCBI3XPvNkYPhTMRvrThRtP5fD6yepJhm7jD6f2 n+KZdibTkMnDISbDpHS96HkVzKU22GOYfd+Ww9wXLPCFvgrh9fFAybBEM XIOHD9u2Suq2RAm/FTSYMzcfRJ9ZwkNucfLByrCgpM6my/akdMd1X24pi jOoU8WajsmCSxye4QjkMXDnzhlscWoLCB/UzQ5pIAWFY3dF3jLCsORj7p bsbXD2g/Rz39Wlr1uXr5pISmGKSb9y74KmhEpb1t27WYAww2DGWzAhI2/ g==; X-CSE-ConnectionGUID: iHJbrbJ5Qxy40j7Wq5Z2LA== X-CSE-MsgGUID: 6D9jdcc8SOWoH738OpHbtQ== X-IronPort-AV: E=Sophos;i="6.08,263,1712646000"; d="scan'208";a="31005830" X-Amp-Result: SKIPPED(no attachment in message) Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa1.microchip.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 25 Jun 2024 03:10:53 -0700 Received: from chn-vm-ex01.mchp-main.com (10.10.85.143) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Tue, 25 Jun 2024 03:10:30 -0700 Received: from che-lt-i67131.microchip.com (10.10.85.11) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server id 15.1.2507.35 via Frontend Transport; Tue, 25 Jun 2024 03:10:25 -0700 From: Manikandan Muralidharan To: , , , , , , , , , , , , CC: Subject: [PATCH] drm: atmel-hlcdc: fix static checker warning by initializing the local variable Date: Tue, 25 Jun 2024 15:40:30 +0530 Message-ID: <20240625101030.373965-1-manikandan.m@microchip.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240625_031054_821227_EDFD67A3 X-CRM114-Status: GOOD ( 11.70 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Initialize the local variable used to store the status of LCDC Channel status register of each layer to fix the static checker warning reported by smatch Fixes: aa71584b323a ("drm: atmel-hlcdc: add driver ops to differentiate HLCDC and XLCDC IP") Signed-off-by: Manikandan Muralidharan --- drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c b/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c index 4a7ba0918eca..4150c4d0b4f2 100644 --- a/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c +++ b/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c @@ -559,7 +559,7 @@ static void atmel_hlcdc_plane_update_buffers(struct atmel_hlcdc_plane *plane, const struct atmel_hlcdc_layer_desc *desc = plane->layer.desc; struct atmel_hlcdc_dc *dc = plane->base.dev->dev_private; struct drm_framebuffer *fb = state->base.fb; - u32 sr; + u32 sr = 0; int i; if (!dc->desc->is_xlcdc)