]> git.proxmox.com Git - mirror_ovs.git/commit
ofproto: Use shash_find_and_delete() in ofport_destroy__().
authorBen Pfaff <blp@ovn.org>
Sat, 27 May 2017 05:53:19 +0000 (22:53 -0700)
committerBen Pfaff <blp@ovn.org>
Fri, 2 Jun 2017 04:16:32 +0000 (21:16 -0700)
commit5978c2e31574cb5a97931e36e6725ce3ab7d7df6
treebc41a08907ffb284e9d464cf3679ba65e3249a5b
parentb2cb3f0bf2bb816d1e3a5f350925d1060ffa74fa
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@ovn.org>
Acked-by: Justin Pettit <jpettit@ovn.org>
ofproto/ofproto.c