Browse Source

Be silent if there are no network interfaces

tags/v0.9.3
Michael Brown 18 years ago
parent
commit
8b6eaf3c82
1 changed files with 0 additions and 6 deletions
  1. 0
    6
      src/hci/commands/ifmgmt_cmd.c

+ 0
- 6
src/hci/commands/ifmgmt_cmd.c View File

58
 	struct net_device *netdev;
58
 	struct net_device *netdev;
59
 	int rc = 0;
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
 	/* Execute payload for each network device */
61
 	/* Execute payload for each network device */
68
 	for_each_netdev ( netdev ) {
62
 	for_each_netdev ( netdev ) {
69
 		if ( payload ( netdev ) != 0 )
63
 		if ( payload ( netdev ) != 0 )

Loading…
Cancel
Save