diff mbox

[1/6] video: udlfb: Use NULL instead of 0

Message ID 1380108594-19090-1-git-send-email-sachin.kamat@linaro.org (mailing list archive)
State New, archived
Headers show

Commit Message

Sachin Kamat Sept. 25, 2013, 11:29 a.m. UTC
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>
---
 drivers/video/udlfb.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Tomi Valkeinen Sept. 26, 2013, 8:50 a.m. UTC | #1
On 25/09/13 14:29, Sachin Kamat wrote:
> 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>
> ---
>  drivers/video/udlfb.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/video/udlfb.c b/drivers/video/udlfb.c
> index d2e5bc3..025f14e 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");
>  
> 

Thanks, queuing this series for 3.13.

 Tomi
diff mbox

Patch

diff --git a/drivers/video/udlfb.c b/drivers/video/udlfb.c
index d2e5bc3..025f14e 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");