[ovs-git] [openvswitch/ovs] 5978c2: ofproto: Use shash_find_and_delete() in ofport_des...

GitHub noreply at github.com
Fri Jun 2 04:16:50 UTC 2017

  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: 5978c2e31574cb5a97931e36e6725ce3ab7d7df6
  Author: Ben Pfaff <blp at ovn.org>
  Date:   2017-06-01 (Thu, 01 Jun 2017)

  Changed paths:
    M ofproto/ofproto.c

  Log Message:
  ofproto: Use shash_find_and_delete() in ofport_destroy__().

This is shorter and slightly safer than combining calls to shash_find()
and shash_delete().

Found by Coverity.

Reported-at: https://scan3.coverity.com/reports.htm#v16889/p10449/fileInstanceId=14762983&defectInstanceId=4305289&mergedDefectId=179850
Signed-off-by: Ben Pfaff <blp at ovn.org>
Acked-by: Justin Pettit <jpettit at ovn.org>

More information about the git mailing list