From 9b3c4e4d791ed0a514630b626d6a052a7d2a448e Mon Sep 17 00:00:00 2001 From: Marty Connor Date: Tue, 3 Jul 2007 16:02:15 -0400 Subject: Warnings purge: src/arch/i386, src/core/disk.c, ramdisk, autoboot --- src/usr/autoboot.c | 28 ---------------------------- 1 file changed, 28 deletions(-) (limited to 'src/usr') diff --git a/src/usr/autoboot.c b/src/usr/autoboot.c index 3936e4ca5..302e1891e 100644 --- a/src/usr/autoboot.c +++ b/src/usr/autoboot.c @@ -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 * -- cgit v1.2.3-55-g7522