]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
fbdev: sh_mobile_lcdcfb: Don't use plain 0 as NULL pointer
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Wed, 27 Nov 2013 00:38:43 +0000 (01:38 +0100)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Fri, 17 Jan 2014 08:57:38 +0000 (10:57 +0200)
This fixes a sparse warning.

Cc: Jean-Christophe Plagniol-Villard <plagnioj@jcrosoft.com>
Cc: Tomi Valkeinen <tomi.valkeinen@ti.com>
Cc: linux-fbdev@vger.kernel.org
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/video/sh_mobile_lcdcfb.c

index ab85ad6c25ec434b983c41f3801171d675a79e81..2bcc84ac18c762f7bc7f5acecdb34149192a1308 100644 (file)
@@ -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;
                }
 
        }