examples/ip_pipeline: rework flow action CLI
[dpdk.git] / examples / vhost / main.c
index 32a79be..665886e 100644 (file)
@@ -1421,8 +1421,6 @@ main(int argc, char *argv[])
 
        /* Get the number of physical ports. */
        nb_ports = rte_eth_dev_count();
-       if (nb_ports > RTE_MAX_ETHPORTS)
-               nb_ports = RTE_MAX_ETHPORTS;
 
        /*
         * Update the global var NUM_PORTS and global array PORTS