datapath: Fix unused 'done' label build warning in flow.c.
[sliver-openvswitch.git] / datapath / flow.c
index d9e3602..a13edeb 100644 (file)
@@ -922,10 +922,6 @@ int flow_metadata_from_nlattrs(u16 *in_port, __be64 *tun_id,
        if (rem)
                return -EINVAL;
 
-done:
-       if (prev_type == ODP_KEY_ATTR_UNSPEC ||
-           prev_type == ODP_KEY_ATTR_TUN_ID)
-               return -EINVAL;
        return 0;
 }