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 0a1cb5caf516e8422e4064530402fa2cce5eae90..b0f37c206cd4f2766c1910a70964ee1411afe702 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;