diff options
| author | Ethan Jackson <ethan@nicira.com> | 2011-03-29 10:58:45 -0700 |
|---|---|---|
| committer | Ethan Jackson <ethan@nicira.com> | 2011-03-29 11:13:30 -0700 |
| commit | 16f4f61d0f7b0010461bd5c214d4bd11c8ae9788 (patch) | |
| tree | 34897eb6abb1842e2fc42522aefa9af8d192d73f /utilities | |
| parent | e2f8f836717b1688c1ddeb009366eda72f1712e1 (diff) | |
| download | openvswitch-16f4f61d0f7b0010461bd5c214d4bd11c8ae9788.tar.gz | |
ovs-vsctl: Remove dead assignment.
Noticed this last night while playing around with the clang static
analyzer.
Diffstat (limited to 'utilities')
| -rw-r--r-- | utilities/ovs-vsctl.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/utilities/ovs-vsctl.c b/utilities/ovs-vsctl.c index 0068f64bd..e6715c9c3 100644 --- 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); } } |
