]> git.droids-corp.org - dpdk.git/blobdiff - examples/multi_process/l2fwd_fork/main.c
examples: remove useless check of port count
[dpdk.git] / examples / multi_process / l2fwd_fork / main.c
index 2dc8b829c82ca19061e0883b6d40610854b4319b..368b3099321314a6c7fbc73493bf6203f1e78d68 100644 (file)
@@ -979,9 +979,6 @@ main(int argc, char **argv)
        if (nb_ports == 0)
                rte_exit(EXIT_FAILURE, "No Ethernet ports - bye\n");
 
-       if (nb_ports > RTE_MAX_ETHPORTS)
-               nb_ports = RTE_MAX_ETHPORTS;
-
        /* create the mbuf pool */
        for (portid = 0; portid < nb_ports; portid++) {
                /* skip ports that are not enabled */