projects
/
openvswitch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
02ef592
)
ovs-brcompatd: Use error instead of pointer in handle_fdb_query_cmd().
author
Ben Pfaff
<blp@nicira.com>
Wed, 10 Feb 2010 19:07:28 +0000
(11:07 -0800)
committer
Ben Pfaff
<blp@nicira.com>
Thu, 11 Feb 2010 18:35:28 +0000
(10:35 -0800)
It is safe to use either value here but as long as we are saving the
error value we might as well use it.
Found by Clang (http://clang-analyzer.llvm.org/).
vswitchd/ovs-brcompatd.c
patch
|
blob
|
history
diff --git
a/vswitchd/ovs-brcompatd.c
b/vswitchd/ovs-brcompatd.c
index beaefb2e2d88e19faa4fba1c8b49163eb4dbe3b8..faf1bee37cf7804d624abf1637aa46e372e48cd9 100644
(file)
--- a/
vswitchd/ovs-brcompatd.c
+++ b/
vswitchd/ovs-brcompatd.c
@@
-756,7
+756,7
@@
handle_fdb_query_cmd(const struct ovsrec_open_vswitch *ovs,
struct netdev *netdev;
error = netdev_open_default(iface_name, &netdev);
- if (
netdev
) {
+ if (
!error
) {
if (!netdev_get_etheraddr(netdev, mac->addr)) {
n_local_macs++;
}