Don't read info->attrs[DP_GENL_A_OPENFLOW] twice, unnecessarily.
authorBen Pfaff <blp@nicira.com>
Mon, 7 Apr 2008 20:55:47 +0000 (13:55 -0700)
committerBen Pfaff <blp@nicira.com>
Mon, 7 Apr 2008 20:55:47 +0000 (13:55 -0700)
datapath/datapath.c

index 0a1cb5c..b0f37c2 100644 (file)
@@ -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;