summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Wiles <keith.wiles@intel.com>2017-07-06 19:36:35 -0500
committerThomas Monjalon <thomas@monjalon.net>2017-08-06 12:38:06 +0200
commit57f2141966b501f104444027c9c26207e6ca8d91 (patch)
tree557c54dfc8d468b273ef6e9ec2df2771c790e269
parent1f4c80df39c48095064aa3c44863a46297463ac6 (diff)
downloaddpdk-57f2141966b501f104444027c9c26207e6ca8d91.zip
dpdk-57f2141966b501f104444027c9c26207e6ca8d91.tar.gz
dpdk-57f2141966b501f104444027c9c26207e6ca8d91.tar.xz
mem: minor fix spelling and format
Signed-off-by: Keith Wiles <keith.wiles@intel.com>
-rw-r--r--lib/librte_eal/common/malloc_elem.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/librte_eal/common/malloc_elem.c b/lib/librte_eal/common/malloc_elem.c
index 08516af..1507690 100644
--- a/lib/librte_eal/common/malloc_elem.c
+++ b/lib/librte_eal/common/malloc_elem.c
@@ -51,7 +51,7 @@
#define MIN_DATA_SIZE (RTE_CACHE_LINE_SIZE)
/*
- * initialise a general malloc_elem header structure
+ * Initialize a general malloc_elem header structure
*/
void
malloc_elem_init(struct malloc_elem *elem,
@@ -69,7 +69,7 @@ malloc_elem_init(struct malloc_elem *elem,
}
/*
- * initialise a dummy malloc_elem header for the end-of-memseg marker
+ * Initialize a dummy malloc_elem header for the end-of-memseg marker
*/
void
malloc_elem_mkend(struct malloc_elem *elem, struct malloc_elem *prev)
@@ -228,7 +228,7 @@ malloc_elem_alloc(struct malloc_elem *elem, size_t size, unsigned align,
elem->pad = old_elem_size;
/* put a dummy header in padding, to point to real element header */
- if (elem->pad > 0){ /* pad will be at least 64-bytes, as everything
+ if (elem->pad > 0) { /* pad will be at least 64-bytes, as everything
* is cache-line aligned */
new_elem->pad = elem->pad;
new_elem->state = ELEM_PAD;