Commit bb5ce9a0 authored by Dan Carpenter's avatar Dan Carpenter Committed by Linus Walleij

drm/mcde: Fix an uninitialized variable

We never set "vblank" to "false".

Current versions of GCC will initialize it to zero automatically at
certain optimization levels so that's probably why this didn't show up
in testing.

Fixes: 5fc537bf ("drm/mcde: Add new driver for ST-Ericsson MCDE")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20190529113458.GG19119@mwanda
parent 31534fda
...@@ -65,7 +65,7 @@ enum mcde_dsi_formatter { ...@@ -65,7 +65,7 @@ enum mcde_dsi_formatter {
void mcde_display_irq(struct mcde *mcde) void mcde_display_irq(struct mcde *mcde)
{ {
u32 mispp, misovl, mischnl; u32 mispp, misovl, mischnl;
bool vblank; bool vblank = false;
/* Handle display IRQs */ /* Handle display IRQs */
mispp = readl(mcde->regs + MCDE_MISPP); mispp = readl(mcde->regs + MCDE_MISPP);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment