ovs-vsctl: Remove dead assignment.
authorEthan Jackson <ethan@nicira.com>
Tue, 29 Mar 2011 17:58:45 +0000 (10:58 -0700)
committerEthan 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

index 0068f64..e6715c9 100644 (file)
@@ -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);
         }
     }