drm/mcde: Fix an uninitialized variable
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 29 May 2019 11:34:58 +0000 (14:34 +0300)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 13 Jun 2019 09:55:23 +0000 (11:55 +0200)
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: 5fc537bfd000 ("drm/mcde: Add new driver for ST-Ericsson MCDE")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20190529113458.GG19119@mwanda
drivers/gpu/drm/mcde/mcde_display.c

index f3ef108a41d9490bec0ad524d2aa53d8c1979d4a..751454ae3cd10e473978393426dd1922d9e84d7e 100644 (file)
@@ -65,7 +65,7 @@ enum mcde_dsi_formatter {
 void mcde_display_irq(struct mcde *mcde)
 {
        u32 mispp, misovl, mischnl;
-       bool vblank;
+       bool vblank = false;
 
        /* Handle display IRQs */
        mispp = readl(mcde->regs + MCDE_MISPP);