]> git.droids-corp.org - dpdk.git/blobdiff - examples/l2fwd-crypto/main.c
examples: remove useless check of port count
[dpdk.git] / examples / l2fwd-crypto / main.c
index d4e2d8de0ee4d19a1317de0f0250a067c9267c12..d18c813b180729901d0f838e0599e720656120f5 100644 (file)
@@ -1785,9 +1785,6 @@ initialize_ports(struct l2fwd_crypto_options *options)
                return -1;
        }
 
-       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;