From 16f4f61d0f7b0010461bd5c214d4bd11c8ae9788 Mon Sep 17 00:00:00 2001 From: Ethan Jackson Date: Tue, 29 Mar 2011 10:58:45 -0700 Subject: [PATCH] ovs-vsctl: Remove dead assignment. Noticed this last night while playing around with the clang static analyzer. --- utilities/ovs-vsctl.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/utilities/ovs-vsctl.c b/utilities/ovs-vsctl.c index 0068f64b..e6715c9c 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); } } -- 2.30.2