This checks whether key_len is not zero but we set the key length
at the beginning of the function, so I don't see this as a useful
check.

Signed-off-by: Jesse Gross <je...@nicira.com>
---
 datapath/flow.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/datapath/flow.c b/datapath/flow.c
index 95297a5..9e0b842 100644
--- a/datapath/flow.c
+++ b/datapath/flow.c
@@ -1143,7 +1143,6 @@ invalid:
        error = -EINVAL;
 
 ok:
-       WARN_ON_ONCE(!key_len && !error);
        *key_lenp = key_len;
        return error;
 }
-- 
1.7.5.4

_______________________________________________
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev

Reply via email to