summaryrefslogtreecommitdiff
path: root/lib/librte_lpm
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 /lib/librte_lpm
parent6e7caa1ad9d597fed0a49468af25ae6e68b8c443 (diff)
downloaddpdk-next-eventdev-693f715da45c48ec1ec0fe4ba2f3b5ffd11ba53e.zip
dpdk-next-eventdev-693f715da45c48ec1ec0fe4ba2f3b5ffd11ba53e.tar.gz
dpdk-next-eventdev-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 'lib/librte_lpm')
-rw-r--r--lib/librte_lpm/rte_lpm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/librte_lpm/rte_lpm.c b/lib/librte_lpm/rte_lpm.c
index 3981452..cfdf959 100644
--- a/lib/librte_lpm/rte_lpm.c
+++ b/lib/librte_lpm/rte_lpm.c
@@ -113,7 +113,7 @@ depth_to_range(uint8_t depth)
return 1 << (MAX_DEPTH_TBL24 - depth);
/* Else if depth is greater than 24 */
- return (1 << (RTE_LPM_MAX_DEPTH - depth));
+ return 1 << (RTE_LPM_MAX_DEPTH - depth);
}
/*