From: Ferruh Yigit Date: Fri, 26 Aug 2016 11:17:53 +0000 (+0100) Subject: net/pcap: remove unnecessary check X-Git-Tag: spdx-start~5859 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=549a9bf486be5f1c91fc29128ccfa94b746f583a;p=dpdk.git net/pcap: remove unnecessary check Both fields are fields of same type of struct, one's size can't be bigger than others. Signed-off-by: Ferruh Yigit Acked-by: Stephen Hemminger --- diff --git a/drivers/net/pcap/rte_eth_pcap.c b/drivers/net/pcap/rte_eth_pcap.c index a3cabf4cd2..88225065d3 100644 --- a/drivers/net/pcap/rte_eth_pcap.c +++ b/drivers/net/pcap/rte_eth_pcap.c @@ -814,10 +814,6 @@ rte_pmd_init_internals(const char *name, const unsigned nb_rx_queues, if (*eth_dev == NULL) goto error; - /* check length of device name */ - if ((strlen((*eth_dev)->data->name) + 1) > sizeof(data->name)) - goto error; - /* now put it all together * - store queue data in internals, * - store numa_node info in eth_dev