[ovs-dev] [cleanups 1/3] odp-util: Drop pointless "if" statement.

Ethan Jackson ethan at nicira.com
Thu Sep 15 16:23:49 UTC 2011


looks good

On Thu, Sep 8, 2011 at 11:40, Ben Pfaff <blp at nicira.com> wrote:
> ---
>  lib/odp-util.c |    4 ----
>  1 files changed, 0 insertions(+), 4 deletions(-)
>
> diff --git a/lib/odp-util.c b/lib/odp-util.c
> index b42a03c..5b86b47 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;
>         }
>
> --
> 1.7.4.4
>
> _______________________________________________
> dev mailing list
> dev at openvswitch.org
> http://openvswitch.org/mailman/listinfo/dev
>



More information about the dev mailing list