Commit 5c29085a authored by Wen Yang's avatar Wen Yang Committed by Bartlomiej Zolnierkiewicz

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: default avatarWen Yang <wen.yang99@zte.com.cn>
Acked-by: default avatarTimur Tabi <timur@kernel.org>
Cc: zhong.weidong@zte.com.cn
Signed-off-by: default avatarBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
parent 452f2d49
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment