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:
parent
452f2d4934
commit
5c29085a72
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue