array_params.offset = 1;
table = rte_table_array_ops.f_create(&array_params, 0, 1);
- if (table != NULL)
+ if (table == NULL)
return -4;
array_params.offset = 32;
hash_params.signature_offset = 1;
table = ops->f_create(&hash_params, 0, 1);
- if (table != NULL)
+ if (table == NULL)
return -2;
hash_params.signature_offset = 0;
hash_params.key_offset = 1;
table = ops->f_create(&hash_params, 0, 1);
- if (table != NULL)
+ if (table == NULL)
return -3;
hash_params.key_offset = 32;
hash_params.n_entries_ext = 1 << 4;
hash_params.signature_offset = 1;
table = ops->f_create(&hash_params, 0, 1);
- if (table != NULL)
+ if (table == NULL)
return -2;
hash_params.signature_offset = 0;
hash_params.key_offset = 1;
table = ops->f_create(&hash_params, 0, 1);
- if (table != NULL)
+ if (table == NULL)
return -3;
hash_params.key_offset = 32;