summaryrefslogtreecommitdiff
path: root/examples/multi_process/client_server_mp
diff options
context:
space:
mode:
authorHuawei Xie <huawei.xie@intel.com>2016-01-27 21:58:30 +0800
committerThomas Monjalon <thomas.monjalon@6wind.com>2016-02-10 15:47:50 +0100
commit693f715da45c48ec1ec0fe4ba2f3b5ffd11ba53e (patch)
treeec6efdef6c7d9ac9d6d1813d2d184032385d6b9c /examples/multi_process/client_server_mp
parent6e7caa1ad9d597fed0a49468af25ae6e68b8c443 (diff)
downloaddpdk-693f715da45c48ec1ec0fe4ba2f3b5ffd11ba53e.zip
dpdk-693f715da45c48ec1ec0fe4ba2f3b5ffd11ba53e.tar.gz
dpdk-693f715da45c48ec1ec0fe4ba2f3b5ffd11ba53e.tar.xz
remove extra parentheses in return statement
fix the error reported by checkpatch: "ERROR: return is not a function, parentheses are not required" remove parentheses in return like: "return (logical expressions)" remove parentheses in return a function like: "return (rte_mempool_lookup(...))" Fixes: 6307b909b8e0 ("lib: remove extra parenthesis after return") Signed-off-by: Huawei Xie <huawei.xie@intel.com>
Diffstat (limited to 'examples/multi_process/client_server_mp')
-rw-r--r--examples/multi_process/client_server_mp/mp_server/init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/multi_process/client_server_mp/mp_server/init.c b/examples/multi_process/client_server_mp/mp_server/init.c
index 7afd51a..1078ffd 100644
--- a/examples/multi_process/client_server_mp/mp_server/init.c
+++ b/examples/multi_process/client_server_mp/mp_server/init.c
@@ -104,7 +104,7 @@ init_mbuf_pools(void)
pktmbuf_pool = rte_pktmbuf_pool_create(PKTMBUF_POOL_NAME, num_mbufs,
MBUF_CACHE_SIZE, 0, RTE_MBUF_DEFAULT_BUF_SIZE, rte_socket_id());
- return (pktmbuf_pool == NULL); /* 0 on success */
+ return pktmbuf_pool == NULL; /* 0 on success */
}
/**