git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
net/bnxt: ignore VLAN priority mask
[dpdk.git]
/
lib
/
librte_rib
/
rte_rib6.c
diff --git
a/lib/librte_rib/rte_rib6.c
b/lib/librte_rib/rte_rib6.c
index
02563b9
..
f6c55ee
100644
(file)
--- a/
lib/librte_rib/rte_rib6.c
+++ b/
lib/librte_rib/rte_rib6.c
@@
-460,8
+460,7
@@
rte_rib6_create(const char *name, int socket_id,
struct rte_mempool *node_pool;
/* Check user arguments. */
- if ((name == NULL) || (conf == NULL) ||
- (conf->max_nodes == 0)) {
+ if (name == NULL || conf == NULL || conf->max_nodes <= 0) {
rte_errno = EINVAL;
return NULL;
}