From: Ben Pfaff Date: Tue, 6 Sep 2011 23:48:39 +0000 (-0700) Subject: odp-util: Drop pointless "if" statement. X-Git-Tag: v1.3.0~295 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=6d324ae5dbe13066aa60d71c4e5d2beaaab6af21;p=sliver-openvswitch.git odp-util: Drop pointless "if" statement. --- diff --git a/lib/odp-util.c b/lib/odp-util.c index 965759508..3d9439815 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; }