Procházet zdrojové kódy

Be silent if there are no network interfaces

tags/v0.9.3
Michael Brown před 18 roky
rodič
revize
8b6eaf3c82
1 změnil soubory, kde provedl 0 přidání a 6 odebrání
  1. 0
    6
      src/hci/commands/ifmgmt_cmd.c

+ 0
- 6
src/hci/commands/ifmgmt_cmd.c Zobrazit soubor

@@ -58,12 +58,6 @@ static int ifcommon_do_all ( int ( * payload ) ( struct net_device * ) ) {
58 58
 	struct net_device *netdev;
59 59
 	int rc = 0;
60 60
 
61
-	/* Print error if no network devices exist */
62
-	if ( ! have_netdevs() ) {
63
-		printf ( "No network interfaces\n" );
64
-		return 1;
65
-	}
66
-
67 61
 	/* Execute payload for each network device */
68 62
 	for_each_netdev ( netdev ) {
69 63
 		if ( payload ( netdev ) != 0 )

Načítá se…
Zrušit
Uložit