summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/mcde/mcde_display.c
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2020-11-19 17:07:07 +0300
committerLinus Walleij <linus.walleij@linaro.org>2020-11-24 02:18:38 +0300
commit3a78f064a679e44cbd77df9fcb30ebac32f5b46a (patch)
tree47cafb1eebc2a55db19204d6c767490eb1ccb7ef /drivers/gpu/drm/mcde/mcde_display.c
parentd795fd322063246f23ca20ba0125cf3ed89cc1d3 (diff)
downloadlinux-3a78f064a679e44cbd77df9fcb30ebac32f5b46a.tar.xz
drm/mcde: Fix uninitialized value
"val" isn't initialized on the default: errorpath. Just return from the function if this happens. Reported-by: kernel test robot <lkp@intel.com> Reported-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Reviewed-by: Sam Ravnborg <sam@ravnborg.org> Link: https://patchwork.freedesktop.org/patch/msgid/20201119140707.1008407-1-linus.walleij@linaro.org
Diffstat (limited to 'drivers/gpu/drm/mcde/mcde_display.c')
-rw-r--r--drivers/gpu/drm/mcde/mcde_display.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/mcde/mcde_display.c b/drivers/gpu/drm/mcde/mcde_display.c
index 192e11c88d72..d941026b940c 100644
--- a/drivers/gpu/drm/mcde/mcde_display.c
+++ b/drivers/gpu/drm/mcde/mcde_display.c
@@ -569,7 +569,7 @@ static void mcde_configure_channel(struct mcde *mcde, enum mcde_channel ch,
default:
dev_err(mcde->dev, "unknown flow mode %d\n",
mcde->flow_mode);
- break;
+ return;
}
writel(val, mcde->regs + sync);