| To: | Jean Tourrilhes <jt@xxxxxxxxxxxxxxxxxx>, "David S. Miller" <davem@xxxxxxxxxx> |
|---|---|
| Subject: | [PATCH] [sparse] irlmp warnings. |
| From: | Stephen Hemminger <shemminger@xxxxxxxx> |
| Date: | Tue, 13 Jul 2004 10:09:56 -0700 |
| Cc: | netdev@xxxxxxxxxxx |
| Organization: | Open Source Development Lab |
| Sender: | netdev-bounce@xxxxxxxxxxx |
Get rid of sparse warnings about 0 vs NULL. in irlmp.
Signed-off-by: Stephen Hemminger <shemminger@xxxxxxxx>
diff -Nru a/net/irda/irlmp.c b/net/irda/irlmp.c
--- a/net/irda/irlmp.c 2004-07-13 10:05:18 -07:00
+++ b/net/irda/irlmp.c 2004-07-13 10:05:18 -07:00
@@ -1491,7 +1491,7 @@
service = kmalloc(sizeof(irlmp_service_t), GFP_ATOMIC);
if (!service) {
IRDA_DEBUG(1, "%s(), Unable to kmalloc!\n", __FUNCTION__);
- return 0;
+ return NULL;
}
service->hints.word = hints;
hashbin_insert(irlmp->services, (irda_queue_t *) service,
@@ -1561,13 +1561,13 @@
irlmp_client_t *client;
IRDA_DEBUG(1, "%s()\n", __FUNCTION__);
- ASSERT(irlmp != NULL, return 0;);
+ ASSERT(irlmp != NULL, return NULL;);
/* Make a new registration */
client = kmalloc(sizeof(irlmp_client_t), GFP_ATOMIC);
if (!client) {
IRDA_DEBUG( 1, "%s(), Unable to kmalloc!\n", __FUNCTION__);
- return 0;
+ return NULL;
}
/* Register the details */
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [PATCH 2.6]: Make packet scheduler clock source configurable, Stephen Hemminger |
|---|---|
| Next by Date: | [PATCH] [sparse] af_inet6 -- 0 vs NULL, Stephen Hemminger |
| Previous by Thread: | Re: Fw: [Bugme-new] [Bug 2782] New: ksoftirqd load system, kernel h anga fter a few minuts, David TILLOY |
| Next by Thread: | Re: [PATCH] [sparse] irlmp warnings., Jean Tourrilhes |
| Indexes: | [Date] [Thread] [Top] [All Lists] |