]> git.proxmox.com Git - ovs.git/commit - lib/dpif-netlink-rtnl.c
dpif-netlink-rtnl: Use OVS_NOT_REACHED in verify.
authorJoe Stringer <joe@ovn.org>
Fri, 19 May 2017 20:27:36 +0000 (13:27 -0700)
committerJoe Stringer <joe@ovn.org>
Tue, 23 May 2017 22:44:27 +0000 (15:44 -0700)
commitb50fcaa0d9d67e7ce023c6f2b3d24343eb2e13ee
tree2a014c38373082d6bdea186aab9869b75f86cbb0
parentcaeda3489e5b33439d8becbe544fb4fa2ba88b46
dpif-netlink-rtnl: Use OVS_NOT_REACHED in verify.

The vport_type_to_kind() call at the top of dpif_netlink_rtnl_verify()
ensures that these cases can never be hit, so use OVS_NOT_REACHED()
instead of setting the err to EOPNOTSUPP.

Signed-off-by: Joe Stringer <joe@ovn.org>
Acked-by: Greg Rose <gvrose8192@gmail.com>
Acked-by: Eric Garver <e@erig.me>
lib/dpif-netlink-rtnl.c