git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
net/bnxt: fix null dereference in session cleanup
[dpdk.git]
/
app
/
test
/
test_pcapng.c
diff --git
a/app/test/test_pcapng.c
b/app/test/test_pcapng.c
index
c2dbeaf
..
320dace
100644
(file)
--- a/
app/test/test_pcapng.c
+++ b/
app/test/test_pcapng.c
@@
-109,7
+109,7
@@
test_setup(void)
return -1;
}
return -1;
}
- /* Make a pool for cloned packe
e
ts */
+ /* Make a pool for cloned packets */
mp = rte_pktmbuf_pool_create_by_ops("pcapng_test_pool", NUM_PACKETS,
0, 0,
rte_pcapng_mbuf_size(pkt_len),
mp = rte_pktmbuf_pool_create_by_ops("pcapng_test_pool", NUM_PACKETS,
0, 0,
rte_pcapng_mbuf_size(pkt_len),
@@
-240,8
+240,7
@@
test_validate(void)
static void
test_cleanup(void)
{
static void
test_cleanup(void)
{
- if (mp)
- rte_mempool_free(mp);
+ rte_mempool_free(mp);
if (pcapng)
rte_pcapng_close(pcapng);
if (pcapng)
rte_pcapng_close(pcapng);