[ovs-git] [openvswitch/ovs] 8c5445: hmap: Fix Coverity false positive

ua1422 noreply at github.com
Thu Mar 19 22:08:56 UTC 2020


  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: 8c544570cb3a1e09009e2d637cbd7075afc7ed03
      https://github.com/openvswitch/ovs/commit/8c544570cb3a1e09009e2d637cbd7075afc7ed03
  Author: Usman Ansari <ua1422 at gmail.com>
  Date:   2020-03-19 (Thu, 19 Mar 2020)

  Changed paths:
    M include/openvswitch/hmap.h

  Log Message:
  -----------
  hmap: Fix Coverity false positive

Coverity reports a false positive below:
Incorrect expression, Assign_where_compare_meant: use of "="
where "==" may have been intended.
Fixed it by rewriting '(NODE = NULL)' as '((NODE = NULL), false)'.
"make check" passes for this change
Coverity reports over 500 errors resolved

Suggested-by: Ben Pfaff <blp at ovn.org>
Signed-off-by: Usman Ansari <ua1422 at gmail.com>
Signed-off-by: Ben Pfaff <blp at ovn.org>




More information about the git mailing list