mirror of
https://github.com/ipxe/ipxe
synced 2025-12-27 10:02:42 +03:00
Warnings purge: src/arch/i386, src/core/disk.c, ramdisk, autoboot
This commit is contained in:
@@ -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
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user