]> git.droids-corp.org - dpdk.git/blobdiff - examples/l2fwd-keepalive/main.c
examples: remove useless check of port count
[dpdk.git] / examples / l2fwd-keepalive / main.c
index 8da89aa15c460fd514c4c31e0e99ab60a37c59ab..4a0d9b645bc5bbbc2732050e4f75b0d11be7b9ce 100644 (file)
@@ -570,9 +570,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;
-
        /* reset l2fwd_dst_ports */
        for (portid = 0; portid < RTE_MAX_ETHPORTS; portid++)
                l2fwd_dst_ports[portid] = 0;