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
remove unnecessary null checks
[dpdk.git]
/
lib
/
compressdev
/
rte_compressdev.c
diff --git
a/lib/compressdev/rte_compressdev.c
b/lib/compressdev/rte_compressdev.c
index
2e9218a
..
d4f7d4d
100644
(file)
--- a/
lib/compressdev/rte_compressdev.c
+++ b/
lib/compressdev/rte_compressdev.c
@@
-405,8
+405,7
@@
rte_compressdev_queue_pairs_release(struct rte_compressdev *dev)
return ret;
}
- if (dev->data->queue_pairs != NULL)
- rte_free(dev->data->queue_pairs);
+ rte_free(dev->data->queue_pairs);
dev->data->queue_pairs = NULL;
dev->data->nb_queue_pairs = 0;