MLK-11932 video: fbdev: mxc: ldb: Do not touch fbi->modelist in ldb_init()
authorLiu Ying <Ying.Liu@freescale.com>
Tue, 1 Dec 2015 06:42:41 +0000 (14:42 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 19:49:20 +0000 (14:49 -0500)
commita7f3b3145b61a84f753a6b3187b0f4dcbb5e4d2e
tree7f4906bd1b44f6ee2cb242c639d43260618657c2
parent939b2d3ce8c816a48f39b413bb246a233c82047c
MLK-11932 video: fbdev: mxc: ldb: Do not touch fbi->modelist in ldb_init()

We don't have to touch fbi->modelist in ldb_init(), because mxcfb_register()
may initialize the list and add a video mode to the list for us.

This patch fixes the following issue reported by Coverity:
INIT_LIST_HEAD(&fbi->modelist);
Uninitialized scalar variable (UNINIT)
uninit_use_in_call: Using uninitialized value fb_vm. Field fb_vm.name is
uninitialized when calling fb_add_videomode.
fb_add_videomode(&fb_vm, &fbi->modelist);
fb_videomode_to_var(&fbi->var, &fb_vm);

Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
drivers/video/fbdev/mxc/ldb.c