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 unneeded tests for NULL when freeing
[dpdk.git]
/
examples
/
ip_pipeline
/
pipeline
/
pipeline_flow_classification_be.c
diff --git
a/examples/ip_pipeline/pipeline/pipeline_flow_classification_be.c
b/examples/ip_pipeline/pipeline/pipeline_flow_classification_be.c
index
e808e79
..
ac80fc6
100644
(file)
--- a/
examples/ip_pipeline/pipeline/pipeline_flow_classification_be.c
+++ b/
examples/ip_pipeline/pipeline/pipeline_flow_classification_be.c
@@
-333,10
+333,8
@@
pipeline_fc_parse_args(struct pipeline_flow_classification *p,
return 0;
error_parse:
- if (key_mask_str != NULL)
- free(key_mask_str);
- if (p->key_mask != NULL)
- free(p->key_mask);
+ free(key_mask_str);
+ free(p->key_mask);
return -1;
}