lkml.org 
[lkml]   [2000]   [Oct]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject[Q] init_etherdev()
Hi all, 

after walking through some of NIC drivers and trying to remove check_region()
calls, i have two small questions:

1) many NIC drivers contain (in XXX_probe1 functions) check like this:

if (dev == NULL) {
dev = init_etherdev();
}

but many drivers don't check (dev == NULL) at all. So first question: is this check
and init_etherdev() call really required or this is old crap waiting for removal ?

2) if init_etherdev() is required, than call to unregister_netdevice() is
required too (in case of probe failure), isn't it ?

Best regards,
Andrey

P.S. IMHO my English is especially bad today, so I'm sorry :)
--

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 12:41    [W:0.036 / U:1.028 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site