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 9657595084de2bafd3da8d4df5eefc4f291b5686..3d94398153492af4aa92aafd642900c0c810c4b9 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;
         }