From: Ben Pfaff Date: Mon, 7 Apr 2008 20:55:47 +0000 (-0700) Subject: Don't read info->attrs[DP_GENL_A_OPENFLOW] twice, unnecessarily. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=149893aeebde67c383dfab71e372dac9414d80d9;p=openvswitch Don't read info->attrs[DP_GENL_A_OPENFLOW] twice, unnecessarily. --- diff --git a/datapath/datapath.c b/datapath/datapath.c index 0a1cb5ca..b0f37c20 100644 --- a/datapath/datapath.c +++ b/datapath/datapath.c @@ -1109,7 +1109,6 @@ static int dp_genl_openflow(struct sk_buff *skb, struct genl_info *info) goto out; } - va = info->attrs[DP_GENL_A_OPENFLOW]; if (nla_len(va) < sizeof(struct ofp_header)) { err = -EINVAL; goto out;