X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=lib%2Fipsec%2Fipsec_sad.c;h=7cb492d187a97368ca8cfbb27369f1ca8e675f75;hb=080c84cde42fd06443b02f495cd0397a490a1f71;hp=3f9533c80a682d274572948354233234d534db6f;hpb=99a2dd955fba6e4cc23b77d590a033650ced9c45;p=dpdk.git diff --git a/lib/ipsec/ipsec_sad.c b/lib/ipsec/ipsec_sad.c index 3f9533c80a..7cb492d187 100644 --- a/lib/ipsec/ipsec_sad.c +++ b/lib/ipsec/ipsec_sad.c @@ -10,7 +10,6 @@ #include #include #include -#include #include #include "rte_ipsec_sad.h" @@ -62,7 +61,7 @@ EAL_REGISTER_TAILQ(rte_ipsec_sad_tailq) * Inserts a rule into an appropriate hash table, * updates the value for a given SPI in SPI_ONLY hash table * reflecting presence of more specific rule type in two LSBs. - * Updates a counter that reflects the number of rules whith the same SPI. + * Updates a counter that reflects the number of rules with the same SPI. */ static inline int add_specific(struct rte_ipsec_sad *sad, const void *key, @@ -440,8 +439,7 @@ rte_ipsec_sad_destroy(struct rte_ipsec_sad *sad) rte_hash_free(sad->hash[RTE_IPSEC_SAD_SPI_DIP]); rte_hash_free(sad->hash[RTE_IPSEC_SAD_SPI_DIP_SIP]); rte_free(sad); - if (te != NULL) - rte_free(te); + rte_free(te); } /*