[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20061023202011.146f7fc0.rdunlap@xenotime.net>
Date: Mon, 23 Oct 2006 20:20:11 -0700
From: Randy Dunlap <rdunlap@...otime.net>
To: lkml <linux-kernel@...r.kernel.org>
Cc: akpm <akpm@...l.org>, Alex Dubov <oakad@...oo.com>
Subject: [PATCH] tifm: fix NULL ptr and style
From: Randy Dunlap <randy.dunlap@...cle.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@...cle.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);
---
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists