linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] drivers/video/fbdev:modify 0 to NULL
@ 2021-03-18  2:33 ChunyouTang
  2021-03-18  1:41 ` Gustavo A. R. Silva
  0 siblings, 1 reply; 5+ messages in thread
From: ChunyouTang @ 2021-03-18  2:33 UTC (permalink / raw)
  To: gustavoars, sam; +Cc: dri-devel, linux-fbdev, linux-kernel, tangchunyou

From: tangchunyou <tangchunyou@yulong.com>

modify 0 to NULL,info is a pointer,it should be

compared with NULL,not 0

Signed-off-by: tangchunyou <tangchunyou@yulong.com>
---
 drivers/video/fbdev/offb.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/video/fbdev/offb.c b/drivers/video/fbdev/offb.c
index 4501e84..cd1042f 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 == NULL) {
 		release_mem_region(res_start, res_size);
 		return;
 	}
-- 
1.9.1



^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-03-18  3:18 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-18  2:33 [PATCH] drivers/video/fbdev:modify 0 to NULL ChunyouTang
2021-03-18  1:41 ` Gustavo A. R. Silva
2021-03-18  2:47   ` Chunyou Tang
2021-03-18  1:54     ` Gustavo A. R. Silva
2021-03-18  2:56       ` Chunyou Tang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).