Skip to contentSkip to conversation

drm: atmel-hlcdc: fix static checker warning by initializing the local variable

PATCH New Manikandan Muralidharan 1 participant 1 message Jun 25, 2024

Subsystems (4)
lore
Share & tools
lore

Manikandan Muralidharan

author maintainer
#0 lore raw

PATCH 1/1 drm: atmel-hlcdc: fix static checker warning by initializing the local variable

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")
---
 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c +1 -1
index 4a7ba0918eca..4150c4d0b4f2 100644
@@ -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)
Signature · 1 line
2.25.1