[ovs-dev] [patch v1] conntrack: Remove redundant call to 'hash_finish()'.

Darrell Ball dlu998 at gmail.com
Thu Feb 14 21:15:07 UTC 2019


Signed-off-by: Darrell Ball <dlu998 at gmail.com>
---
 lib/conntrack.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/lib/conntrack.c b/lib/conntrack.c
index c543aea..9a618a5 100644
--- a/lib/conntrack.c
+++ b/lib/conntrack.c
@@ -2010,11 +2010,9 @@ conn_key_hash(const struct conn_key *key, uint32_t basis)
     hash = hsrc ^ hdst;
 
     /* Hash the rest of the key(L3 and L4 types and zone). */
-    hash = hash_words((uint32_t *) (&key->dst + 1),
+    return hash_words((uint32_t *) (&key->dst + 1),
                       (uint32_t *) (key + 1) - (uint32_t *) (&key->dst + 1),
                       hash);
-
-    return hash_finish(hash, 0);
 }
 
 static void
-- 
1.9.1



More information about the dev mailing list