[ovs-dev] dpif-netdev: emc_processing: remove useless instruction
diff mbox

Message ID 1443422847-10911-1-git-send-email-i.maximets@samsung.com
State Deferred
Headers show

Commit Message

Ilya Maximets Sept. 28, 2015, 6:47 a.m. UTC
key.len, if needed, will be initialized inside fast_path_processing().
It will be never used before.

Signed-off-by: Ilya Maximets <i.maximets@samsung.com>
---
 lib/dpif-netdev.c | 1 -
 1 file changed, 1 deletion(-)

Patch
diff mbox

diff --git a/lib/dpif-netdev.c b/lib/dpif-netdev.c
index e6ba33f..54626b9 100644
--- a/lib/dpif-netdev.c
+++ b/lib/dpif-netdev.c
@@ -3220,7 +3220,6 @@  emc_processing(struct dp_netdev_pmd_thread *pmd, struct dp_packet **packets,
         }
 
         miniflow_extract(packets[i], &key.mf);
-        key.len = 0; /* Not computed yet. */
         key.hash = dpif_netdev_packet_get_rss_hash(packets[i], &key.mf);
 
         flow = emc_lookup(flow_cache, &key);