mirror of https://github.com/ipxe/ipxe.git
Be silent if there are no network interfaces
parent
e96041872e
commit
8b6eaf3c82
|
@ -58,12 +58,6 @@ static int ifcommon_do_all ( int ( * payload ) ( struct net_device * ) ) {
|
||||||
struct net_device *netdev;
|
struct net_device *netdev;
|
||||||
int rc = 0;
|
int rc = 0;
|
||||||
|
|
||||||
/* Print error if no network devices exist */
|
|
||||||
if ( ! have_netdevs() ) {
|
|
||||||
printf ( "No network interfaces\n" );
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Execute payload for each network device */
|
/* Execute payload for each network device */
|
||||||
for_each_netdev ( netdev ) {
|
for_each_netdev ( netdev ) {
|
||||||
if ( payload ( netdev ) != 0 )
|
if ( payload ( netdev ) != 0 )
|
||||||
|
|
Loading…
Reference in New Issue