Commit 5b34b0c2 authored by Haowen Bai's avatar Haowen Bai Committed by Helge Deller
Browse files

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: default avatarHaowen Bai <baihaowen@meizu.com>
Signed-off-by: default avatarHelge Deller <deller@gmx.de>
parent a58c22cf
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
	}