datapath: Drop useless WARN_ON_ONCE during flow conversion.
authorJesse Gross <jesse@nicira.com>
Tue, 1 Nov 2011 22:35:31 +0000 (15:35 -0700)
committerJesse Gross <jesse@nicira.com>
Wed, 2 Nov 2011 23:00:11 +0000 (16:00 -0700)
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 <jesse@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
datapath/flow.c

index 95297a52ce5953493a21408adab503763ebd5089..9e0b842efb14c5b8cdec20a2716e852b595b5ce0 100644 (file)
@@ -1143,7 +1143,6 @@ invalid:
        error = -EINVAL;
 
 ok:
-       WARN_ON_ONCE(!key_len && !error);
        *key_lenp = key_len;
        return error;
 }