summaryrefslogtreecommitdiff
path: root/lib/librte_lpm
diff options
context:
space:
mode:
authorFerruh Yigit <ferruhy@gmail.com>2015-05-11 17:10:25 +0300
committerThomas Monjalon <thomas.monjalon@6wind.com>2015-06-23 23:31:15 +0200
commit6307b909b8e01af6737734cde4ff8b782b6efdf3 (patch)
treed7b3a1a17df5e420be9a56415275f4dff197ea13 /lib/librte_lpm
parent340a1edfa95e008f31d6d7bffd05bd959c6b75c3 (diff)
downloaddpdk-6307b909b8e01af6737734cde4ff8b782b6efdf3.zip
dpdk-6307b909b8e01af6737734cde4ff8b782b6efdf3.tar.gz
dpdk-6307b909b8e01af6737734cde4ff8b782b6efdf3.tar.xz
lib: remove extra parenthesis after return
Remove extra parenthesis from return statements. Signed-off-by: Ferruh Yigit <ferruhy@gmail.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 0c87a29..de05307 100644
--- a/lib/librte_lpm/rte_lpm.c
+++ b/lib/librte_lpm/rte_lpm.c
@@ -371,7 +371,7 @@ rule_find(struct rte_lpm *lpm, uint32_t ip_masked, uint8_t depth)
for (rule_index = rule_gindex; rule_index < last_rule; rule_index++) {
/* If rule is found return the rule index. */
if (lpm->rules_tbl[rule_index].ip == ip_masked)
- return (rule_index);
+ return rule_index;
}
/* If rule is not found return -EINVAL. */