From: Laurent Pinchart Date: Wed, 27 Nov 2013 00:38:43 +0000 (+0100) Subject: fbdev: sh_mobile_lcdcfb: Don't use plain 0 as NULL pointer X-Git-Tag: v3.14-rc1~105^2~24 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=40af1eb5a73c16fc8270d45b8c37e3c75f107eb4;p=karo-tx-linux.git fbdev: sh_mobile_lcdcfb: Don't use plain 0 as NULL pointer This fixes a sparse warning. Cc: Jean-Christophe Plagniol-Villard Cc: Tomi Valkeinen Cc: linux-fbdev@vger.kernel.org Signed-off-by: Laurent Pinchart Signed-off-by: Tomi Valkeinen --- diff --git a/drivers/video/sh_mobile_lcdcfb.c b/drivers/video/sh_mobile_lcdcfb.c index ab85ad6c25ec..2bcc84ac18c7 100644 --- a/drivers/video/sh_mobile_lcdcfb.c +++ b/drivers/video/sh_mobile_lcdcfb.c @@ -1227,7 +1227,7 @@ static void sh_mobile_lcdc_stop(struct sh_mobile_lcdc_priv *priv) /* Free the MERAM cache. */ if (ch->cache) { sh_mobile_meram_cache_free(priv->meram_dev, ch->cache); - ch->cache = 0; + ch->cache = NULL; } }