mirror of
https://github.com/xcat2/xNBA.git
synced 2025-01-18 21:43:14 +00:00
Be silent if there are no network interfaces
This commit is contained in:
parent
e96041872e
commit
8b6eaf3c82
@ -58,12 +58,6 @@ static int ifcommon_do_all ( int ( * payload ) ( struct net_device * ) ) {
|
||||
struct net_device *netdev;
|
||||
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 */
|
||||
for_each_netdev ( netdev ) {
|
||||
if ( payload ( netdev ) != 0 )
|
||||
|
Loading…
x
Reference in New Issue
Block a user