From c379999665febd12ec55bfb3a7545224f2b39d3d Mon Sep 17 00:00:00 2001 From: Dave Barach Date: Mon, 15 Aug 2016 11:12:27 -0400 Subject: VPP-327 Coding standards cleanup for vppinfra Fix additional a few additional deviations reported elsewhere by checkstyle Change-Id: I026a8ae1c5b1856bbe3c4a555e1b690e7501b045 Signed-off-by: Dave Barach --- vlib-api/vlibmemory/memory_shared.c | 2 +- vlib-api/vlibmemory/memory_vlib.c | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) (limited to 'vlib-api/vlibmemory') diff --git a/vlib-api/vlibmemory/memory_shared.c b/vlib-api/vlibmemory/memory_shared.c index a2f22771596..900e89d15c3 100644 --- a/vlib-api/vlibmemory/memory_shared.c +++ b/vlib-api/vlibmemory/memory_shared.c @@ -285,7 +285,7 @@ vl_map_shmem (char *region_name, int is_vlib) memset (a, 0, sizeof (*a)); a->name = region_name; - a->size = am->api_size ? am->api_size: (16 << 20); + a->size = am->api_size ? am->api_size : (16 << 20); a->flags = SVM_FLAGS_MHEAP; a->uid = am->api_uid; a->gid = am->api_gid; diff --git a/vlib-api/vlibmemory/memory_vlib.c b/vlib-api/vlibmemory/memory_vlib.c index 2212b46bce4..32f0fbcc689 100644 --- a/vlib-api/vlibmemory/memory_vlib.c +++ b/vlib-api/vlibmemory/memory_vlib.c @@ -1177,18 +1177,19 @@ vlibmemory_init (vlib_main_t * vm) { api_main_t *am = &api_main; svm_map_region_args_t _a, *a = &_a; - + memset (a, 0, sizeof (*a)); a->root_path = am->root_path; a->name = SVM_GLOBAL_REGION_NAME; - a->baseva = (am->global_baseva != 0) ? + a->baseva = (am->global_baseva != 0) ? am->global_baseva : SVM_GLOBAL_REGION_BASEVA; a->size = (am->global_size != 0) ? am->global_size : SVM_GLOBAL_REGION_SIZE; a->flags = SVM_FLAGS_NODATA; a->uid = am->api_uid; a->gid = am->api_gid; - a->pvt_heap_size = (am->global_pvt_heap_size != 0) ? am->global_pvt_heap_size - : SVM_PVT_MHEAP_SIZE; + a->pvt_heap_size = + (am->global_pvt_heap_size != + 0) ? am->global_pvt_heap_size : SVM_PVT_MHEAP_SIZE; svm_region_init_args (a); return 0; -- cgit 1.2.3-korg