]> git.droids-corp.org - dpdk.git/blobdiff - lib/librte_rib/rte_rib6.c
net/txgbe: support VF MAC address
[dpdk.git] / lib / librte_rib / rte_rib6.c
index 02563b951620a225c4d583d76e1537aa1ea64f7f..f6c55ee454bed75977c969aa6a751b16e6a286d1 100644 (file)
@@ -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;
        }