From: Ethan Jackson Date: Tue, 29 Mar 2011 17:58:45 +0000 (-0700) Subject: ovs-vsctl: Remove dead assignment. X-Git-Tag: v1.1.0~54 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=16f4f61d0f7b0010461bd5c214d4bd11c8ae9788;p=sliver-openvswitch.git ovs-vsctl: Remove dead assignment. Noticed this last night while playing around with the clang static analyzer. --- 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); } }