diff options
author | Haowen Bai <baihaowen@meizu.com> | 2022-03-11 10:56:48 +0800 |
---|---|---|
committer | Helge Deller <deller@gmx.de> | 2022-03-11 08:23:53 +0100 |
commit | 5b34b0c2248968ec83ebd78669dc0b9085d13f75 (patch) | |
tree | 21dc7577f28673dbbb9b44e3021257431af26247 /drivers/video | |
parent | a58c22cfbbf62fefca090334bbd35fd132e92a23 (diff) |
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>
Diffstat (limited to 'drivers/video')
-rw-r--r-- | drivers/video/fbdev/offb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/fbdev/offb.c b/drivers/video/fbdev/offb.c index 4501e848a36f..afdb6aa48add 100644 --- a/drivers/video/fbdev/offb.c +++ b/drivers/video/fbdev/offb.c @@ -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; } |