examples: remove useless check of port count
[dpdk.git] / examples / tep_termination / main.c
index 9af030d..b8297dd 100644 (file)
@@ -1190,8 +1190,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 NB_PORTS and global array PORTS