]> git.droids-corp.org - dpdk.git/blobdiff - examples/link_status_interrupt/main.c
remove unused ring includes
[dpdk.git] / examples / link_status_interrupt / main.c
index 99815989079fa654cfff7c06b54ef46e7a5c7d0b..14a038b729edc97f3a16017d72ea4528188b027c 100644 (file)
@@ -67,7 +67,6 @@
 #include <rte_debug.h>
 #include <rte_ether.h>
 #include <rte_ethdev.h>
-#include <rte_ring.h>
 #include <rte_mempool.h>
 #include <rte_mbuf.h>
 
@@ -580,9 +579,6 @@ main(int argc, char **argv)
        if (nb_ports == 0)
                rte_panic("No Ethernet port - bye\n");
 
-       if (nb_ports > RTE_MAX_ETHPORTS)
-               nb_ports = RTE_MAX_ETHPORTS;
-
        /*
         * Each logical core is assigned a dedicated TX queue on each port.
         */