Skip to content

Commit

Permalink
dpdk: trivial: Fix comment and cast.
Browse files Browse the repository at this point in the history
Comment should start with capital letter.
Remove unnecessary type casting.

Signed-off-by: William Tu <u9012063@gmail.com>
Signed-off-by: 0-day Robot <robot@bytheb.org>
  • Loading branch information
williamtu authored and ovsrobot committed Sep 12, 2019
1 parent 24d128e commit 7d08b99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/dp-packet.h
Expand Up @@ -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. */
Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit 7d08b99

Please sign in to comment.