summaryrefslogtreecommitdiff
path: root/lib/dp-packet.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/dp-packet.h')
-rw-r--r--lib/dp-packet.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/dp-packet.h b/lib/dp-packet.h
index 55eeaab2c..a8ea5b40f 100644
--- a/lib/dp-packet.h
+++ b/lib/dp-packet.h
@@ -247,9 +247,7 @@ dp_packet_delete(struct dp_packet *b)
{
if (b) {
if (b->source == DPBUF_DPDK) {
- /* If this dp_packet was allocated by DPDK it must have been
- * created as a dp_packet */
- free_dpdk_buf((struct dp_packet*) b);
+ free_dpdk_buf(b);
return;
}