[ovs-git] [openvswitch/ovs] a3aa87: dpif-netdev: Remove useless port checking.

GitHub noreply at github.com
Tue Jul 11 20:08:58 UTC 2017


  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: a3aa871111d54fc0c9c1c3e8f39eb7840f2d53fa
      https://github.com/openvswitch/ovs/commit/a3aa871111d54fc0c9c1c3e8f39eb7840f2d53fa
  Author: Ilya Maximets <i.maximets at samsung.com>
  Date:   2017-07-11 (Tue, 11 Jul 2017)

  Changed paths:
    M lib/dpif-netdev.c

  Log Message:
  -----------
  dpif-netdev: Remove useless port checking.

Since commit ff073a71f9bb ("dpif-netdev: Use hmap instead of
list+array for tracking ports."), 'is_valid_port_number()' is
equal to 'port_no != ODPP_NONE', and the expression below will
never be true.

Signed-off-by: Ilya Maximets <i.maximets at samsung.com>
Signed-off-by: Ben Pfaff <blp at ovn.org>
Acked-by: Greg Rose <gvrose8192 at gmail.com>




More information about the git mailing list