fbdev: fsl-diu: remove redundant null check on cmap

The null check on &info->cmap is redundant since cmap is a struct
inside fb_info and can never be null, so the check is always true.
We may remove it.

Signed-off-by: Wen Yang <wen.yang99@zte.com.cn>
Acked-by: Timur Tabi <timur@kernel.org>
Cc: zhong.weidong@zte.com.cn
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
This commit is contained in:
Wen Yang 2018-12-20 19:13:08 +01:00 committed by Bartlomiej Zolnierkiewicz
parent 452f2d4934
commit 5c29085a72
1 changed files with 1 additions and 2 deletions

View File

@ -1575,8 +1575,7 @@ static void uninstall_fb(struct fb_info *info)
unregister_framebuffer(info);
unmap_video_memory(info);
if (&info->cmap)
fb_dealloc_cmap(&info->cmap);
fb_dealloc_cmap(&info->cmap);
mfbi->registered = 0;
}