From: Ben Pfaff Date: Tue, 6 Sep 2011 23:48:39 +0000 (-0700) Subject: odp-util: Drop pointless "if" statement. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6d324ae5dbe13066aa60d71c4e5d2beaaab6af21;p=openvswitch odp-util: Drop pointless "if" statement. --- diff --git a/lib/odp-util.c b/lib/odp-util.c index 96575950..3d943981 100644 --- a/lib/odp-util.c +++ b/lib/odp-util.c @@ -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; }