Skip to contentSkip to conversation

tifm: fix NULL ptr and style

PATCH New Randy Dunlap 1 participant 1 message Oct 24, 2006

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tifm: fix NULL ptr and style

From: Randy Dunlap <[email protected]>

Fix sparse NULL warning;
drivers/misc/tifm_core.c:223:17: warning: Using plain integer as NULL pointer

Fix style while there.

---
 drivers/misc/tifm_core.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
drivers/misc/tifm_core.c +3 -2
@@ -219,8 +219,9 @@ static int tifm_device_remove(struct 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);

---