[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1420440610-20621-4-git-send-email-simon.horman@netronome.com>
Date: Mon, 5 Jan 2015 15:50:07 +0900
From: Simon Horman <simon.horman@...ronome.com>
To: John Fastabend <john.fastabend@...il.com>
Cc: netdev@...r.kernel.org, Simon Horman <simon.horman@...ronome.com>
Subject: [PATCH/RFC rocker-net-next 3/6] net: flow: Remove unnecessary zero-header check when putting a flow
This is the condition for the for loop to continue.
Signed-off-by: Simon Horman <simon.horman@...ronome.com>
---
net/core/flow_table.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/net/core/flow_table.c b/net/core/flow_table.c
index 753ebe0..c734a9d 100644
--- a/net/core/flow_table.c
+++ b/net/core/flow_table.c
@@ -1003,9 +1003,6 @@ int net_flow_put_flow(struct sk_buff *skb, struct net_flow_flow *flow)
for (j = 0; flow->matches && flow->matches[j].header; j++) {
struct net_flow_field_ref *f = &flow->matches[j];
- if (!f->header)
- continue;
-
err = nla_put(skb, NET_FLOW_FIELD_REF, sizeof(*f), f);
if (err) {
nla_nest_cancel(skb, matches);
--
2.1.3
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists