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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user