[ovs-dev] dpdk: trivial: Fix comment and cast.
diff mbox series

Message ID 1568305767-99967-1-git-send-email-u9012063@gmail.com
State New
Headers show
Series
  • [ovs-dev] dpdk: trivial: Fix comment and cast.
Related show

Commit Message

William Tu Sept. 12, 2019, 4:29 p.m. UTC
Comment should start with capital letter.
Remove unnecessary type casting.

Signed-off-by: William Tu <u9012063@gmail.com>
---
 lib/dp-packet.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Patch
diff mbox series

diff --git a/lib/dp-packet.h b/lib/dp-packet.h
index 14f0897fa637..5f703ad457b3 100644
--- a/lib/dp-packet.h
+++ b/lib/dp-packet.h
@@ -40,7 +40,7 @@  enum OVS_PACKED_ENUM dp_packet_source {
     DPBUF_MALLOC,              /* Obtained via malloc(). */
     DPBUF_STACK,               /* Un-movable stack space or static buffer. */
     DPBUF_STUB,                /* Starts on stack, may expand into heap. */
-    DPBUF_DPDK,                /* buffer data is from DPDK allocated memory.
+    DPBUF_DPDK,                /* Buffer data is from DPDK allocated memory.
                                 * ref to dp_packet_init_dpdk() in dp-packet.c.
                                 */
     DPBUF_AFXDP,               /* Buffer data from XDP frame. */
@@ -191,7 +191,7 @@  dp_packet_delete(struct dp_packet *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;
         }