Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3316eaa3 authored by Randy Dunlap's avatar Randy Dunlap Committed by Linus Torvalds
Browse files

[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: default avatarRandy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent e6c40211
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -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);