Max_nodes in config is signed, but a negative value makes
no sense. Get rid of extra BSD style parens.
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Acked-by: Vladimir Medvedkin <vladimir.medvedkin@intel.com>
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;
}
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;
}