From: Randy Dunlap Date: Thu, 7 Dec 2006 04:36:29 +0000 (-0800) Subject: [PATCH] tifm: fix NULL ptr and style X-Git-Tag: v2.6.20-rc1~145^2^2~201 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3316eaa31e638d21dfa4a81a3322f8898981c591;p=linux-2.6 [PATCH] tifm: fix NULL ptr and style Fix sparse NULL warning; drivers/misc/tifm_core.c:223:17: warning: Using plain integer as NULL pointer Fix style while there. Signed-off-by: Randy Dunlap Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/misc/tifm_core.c b/drivers/misc/tifm_core.c index ee326136d0..d61df5c3ac 100644 --- a/drivers/misc/tifm_core.c +++ b/drivers/misc/tifm_core.c @@ -219,8 +219,9 @@ static int tifm_device_remove(struct device *dev) struct tifm_driver *drv = fm_dev->drv; if (drv) { - if (drv->remove) drv->remove(fm_dev); - fm_dev->drv = 0; + if (drv->remove) + drv->remove(fm_dev); + fm_dev->drv = NULL; } put_device(dev);