Warnings purge: src/arch/i386, src/core/disk.c, ramdisk, autoboot

This commit is contained in:
Marty Connor
2007-07-03 16:02:15 -04:00
parent 4bcfe7507b
commit 9b3c4e4d79
10 changed files with 7 additions and 610 deletions

View File

@@ -43,34 +43,6 @@ static struct net_device * find_boot_netdev ( void ) {
return NULL;
}
/**
* Get the next network device to try
*
* @ret netdev 'Next' network device
*
* This function will cycle through all registered network devices in
* order, returning NULL.
*
* This function should be safe against registration/deregistration of
* net devices between calls to next_netdev().
*/
static struct net_device * next_netdev ( void ) {
static struct net_device *last_netdev = NULL;
struct net_device *netdev;
for_each_netdev ( netdev ) {
if ( ! last_netdev ) {
last_netdev = netdev;
return netdev;
}
if ( last_netdev == netdev )
last_netdev = NULL;
}
last_netdev = NULL;
return NULL;
}
/**
* Boot from a network device
*