lkml.org 
[lkml]   [2004]   [Jan]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: about ipmr
I would prefer this way of checking the NULL

That would be more consistent with ip_gre.c and ipip.c

any suggestions ?

/Raj

--- ipmr.c.org 2004-01-09 12:07:45.271713432 +0530
+++ ipmr.c 2004-01-09 12:09:39.389364912 +0530
@@ -205,6 +205,9 @@ static struct net_device *ipmr_reg_vif(v
dev = alloc_netdev(sizeof(struct net_device_stats), "pimreg",
reg_vif_setup);

+ if( dev == NULL)
+ return NULL;
+
if (register_netdevice(dev)) {
kfree(dev);
return NULL;
\
 
 \ /
  Last update: 2005-03-22 13:59    [W:0.072 / U:0.436 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site