summaryrefslogtreecommitdiff
path: root/lib/librte_acl
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_acl
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 'lib/librte_acl')
-rw-r--r--lib/librte_acl/acl_bld.c4
-rw-r--r--lib/librte_acl/acl_run_neon.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/librte_acl/acl_bld.c b/lib/librte_acl/acl_bld.c
index d78bc2d..9e5ad1c 100644
--- a/lib/librte_acl/acl_bld.c
+++ b/lib/librte_acl/acl_bld.c
@@ -1157,8 +1157,8 @@ rule_cmp_wildness(struct rte_acl_build_rule *r1, struct rte_acl_build_rule *r2)
int field_index = r1->config->defs[n].field_index;
if (r1->wildness[field_index] != r2->wildness[field_index])
- return (r1->wildness[field_index] -
- r2->wildness[field_index]);
+ return r1->wildness[field_index] -
+ r2->wildness[field_index];
}
return 0;
}
diff --git a/lib/librte_acl/acl_run_neon.h b/lib/librte_acl/acl_run_neon.h
index cf7c57f..d233ff0 100644
--- a/lib/librte_acl/acl_run_neon.h
+++ b/lib/librte_acl/acl_run_neon.h
@@ -102,7 +102,7 @@ resolve_priority_neon(uint64_t transition, int n, const struct rte_acl_ctx *ctx,
static inline __attribute__((always_inline)) uint32_t
check_any_match_x4(uint64_t val[])
{
- return ((val[0] | val[1] | val[2] | val[3]) & RTE_ACL_NODE_MATCH);
+ return (val[0] | val[1] | val[2] | val[3]) & RTE_ACL_NODE_MATCH;
}
static inline __attribute__((always_inline)) void