Commit f3d8496e authored by Fabio Estevam's avatar Fabio Estevam Committed by Linus Torvalds

drivers/video/mx3fb.c: use NULL for pointer

Fix the following sparse error:

  drivers/video/mx3fb.c:1309:28: warning: Using plain integer as NULL pointer
Signed-off-by: default avatarFabio Estevam <fabio.estevam@freescale.com>
Acked-by: default avatarGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 9ea8b9a5
...@@ -1306,7 +1306,7 @@ static int mx3fb_unmap_video_memory(struct fb_info *fbi) ...@@ -1306,7 +1306,7 @@ static int mx3fb_unmap_video_memory(struct fb_info *fbi)
dma_free_writecombine(fbi->device, fbi->fix.smem_len, dma_free_writecombine(fbi->device, fbi->fix.smem_len,
fbi->screen_base, fbi->fix.smem_start); fbi->screen_base, fbi->fix.smem_start);
fbi->screen_base = 0; fbi->screen_base = NULL;
mutex_lock(&fbi->mm_lock); mutex_lock(&fbi->mm_lock);
fbi->fix.smem_start = 0; fbi->fix.smem_start = 0;
fbi->fix.smem_len = 0; fbi->fix.smem_len = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment