projects
/
openvswitch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e2f8f83
)
ovs-vsctl: Remove dead assignment.
author
Ethan Jackson
<ethan@nicira.com>
Tue, 29 Mar 2011 17:58:45 +0000
(10:58 -0700)
committer
Ethan Jackson
<ethan@nicira.com>
Tue, 29 Mar 2011 18:13:30 +0000
(11:13 -0700)
Noticed this last night while playing around with the clang static
analyzer.
utilities/ovs-vsctl.c
patch
|
blob
|
history
diff --git
a/utilities/ovs-vsctl.c
b/utilities/ovs-vsctl.c
index 0068f64bd2c0f0b4c1b73126208103dc2efcdc4b..e6715c9c35ec08cd00840b360ebe1dc568225f7c 100644
(file)
--- a/
utilities/ovs-vsctl.c
+++ b/
utilities/ovs-vsctl.c
@@
-2799,11
+2799,9
@@
cmd_list(struct vsctl_context *ctx)
}
} else {
const struct ovsdb_idl_row *row;
- bool first;
- for (row = ovsdb_idl_first_row(ctx->idl, table->class), first = true;
- row != NULL;
- row = ovsdb_idl_next_row(row), first = false) {
+ for (row = ovsdb_idl_first_row(ctx->idl, table->class); row != NULL;
+ row = ovsdb_idl_next_row(row)) {
list_record(row, columns, n_columns, out);
}
}