video: fbdev: offb: fix warning comparing pointer to 0

Fix the following coccicheck warning:
drivers/video/fbdev/offb.c:415:13-14: WARNING comparing pointer to 0

Signed-off-by: Haowen Bai <baihaowen@meizu.com>
Signed-off-by: Helge Deller <deller@gmx.de>
This commit is contained in:
Haowen Bai 2022-03-11 10:56:48 +08:00 committed by Helge Deller
parent a58c22cfbb
commit 5b34b0c224

View file

@ -412,7 +412,7 @@ static void __init offb_init_fb(const char *name,
info = framebuffer_alloc(sizeof(u32) * 16, NULL);
if (info == 0) {
if (!info) {
release_mem_region(res_start, res_size);
return;
}