summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2013-09-25 13:29:49 +0200
committerTomi Valkeinen <tomi.valkeinen@ti.com>2013-09-26 10:50:07 +0200
commitceeddb4e69b2010b0f4f88c9e06dc83d80b49db6 (patch)
treeeaf6e1a0ebdf71450a8c9ba990277ba863abda42
parentbacklight: tosa: Remove redundant spi_set_drvdata (diff)
downloadlinux-ceeddb4e69b2010b0f4f88c9e06dc83d80b49db6.tar.xz
linux-ceeddb4e69b2010b0f4f88c9e06dc83d80b49db6.zip
video: udlfb: Use NULL instead of 0
new_back is a pointer. Use NULL instead of 0. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Cc: Bernie Thompson <bernie@plugable.com> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
-rw-r--r--drivers/video/udlfb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/udlfb.c b/drivers/video/udlfb.c
index d2e5bc3cf969..025f14e30eed 100644
--- a/drivers/video/udlfb.c
+++ b/drivers/video/udlfb.c
@@ -1166,7 +1166,7 @@ static int dlfb_realloc_framebuffer(struct dlfb_data *dev, struct fb_info *info)
int new_len;
unsigned char *old_fb = info->screen_base;
unsigned char *new_fb;
- unsigned char *new_back = 0;
+ unsigned char *new_back = NULL;
pr_warn("Reallocating framebuffer. Addresses will change!\n");