odp-util: Drop pointless "if" statement.
authorBen Pfaff <blp@nicira.com>
Tue, 6 Sep 2011 23:48:39 +0000 (16:48 -0700)
committerBen Pfaff <blp@nicira.com>
Thu, 15 Sep 2011 18:10:36 +0000 (11:10 -0700)
lib/odp-util.c

index 9657595..3d94398 100644 (file)
@@ -989,10 +989,6 @@ odp_flow_key_to_flow(const struct nlattr *key, size_t key_len,
             break;
 
         default:
-            if (type == OVS_KEY_ATTR_UNSPEC
-                || prev_type == OVS_KEY_ATTR_UNSPEC) {
-                return EINVAL;
-            }
             return EINVAL;
         }