* [PATCH] tifm: fix NULL ptr and style
@ 2006-10-24 3:20 Randy Dunlap
0 siblings, 0 replies; only message in thread
From: Randy Dunlap @ 2006-10-24 3:20 UTC (permalink / raw)
To: lkml; +Cc: akpm, Alex Dubov
From: Randy Dunlap <randy.dunlap@oracle.com>
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>
---
drivers/misc/tifm_core.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
--- linux-2.6.19-rc2-git8.orig/drivers/misc/tifm_core.c
+++ linux-2.6.19-rc2-git8/drivers/misc/tifm_core.c
@@ -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);
---
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-10-24 3:18 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-10-24 3:20 [PATCH] tifm: fix NULL ptr and style Randy Dunlap
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®