Skip to content

Commit

Permalink
[PATCH] tifm: fix NULL ptr and style
Browse files Browse the repository at this point in the history
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 <randy.dunlap@oracle.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Randy Dunlap authored and Linus Torvalds committed Dec 7, 2006
1 parent e6c4021 commit 3316eaa
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions drivers/misc/tifm_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 3316eaa

Please sign in to comment.