From: Jesse Gross Date: Tue, 1 Nov 2011 22:35:31 +0000 (-0700) Subject: datapath: Drop useless WARN_ON_ONCE during flow conversion. X-Git-Tag: v1.4.0~218 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=a7d7f493ba47b1986857b57103f75dccf65d548a;p=sliver-openvswitch.git datapath: Drop useless WARN_ON_ONCE during flow conversion. 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 Acked-by: Ben Pfaff --- diff --git a/datapath/flow.c b/datapath/flow.c index 95297a52c..9e0b842ef 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; }