mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-05 16:37:50 +00:00
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:
parent
a58c22cfbb
commit
5b34b0c224
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue