From a7d7f493ba47b1986857b57103f75dccf65d548a Mon Sep 17 00:00:00 2001 From: Jesse Gross Date: Tue, 1 Nov 2011 15:35:31 -0700 Subject: [PATCH] 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 --- datapath/flow.c | 1 - 1 file changed, 1 deletion(-) diff --git a/datapath/flow.c b/datapath/flow.c index 95297a52..9e0b842e 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; } -- 2.30.2