]> git.droids-corp.org - dpdk.git/blobdiff - examples/l2fwd-jobstats/main.c
examples: remove useless check of port count
[dpdk.git] / examples / l2fwd-jobstats / main.c
index 9f3a77d2ea1b96678940e6c7eac32cc2b0fe9182..c19384038bfe452b369e98113037ca204183c979 100644 (file)
@@ -811,9 +811,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;