From cde3f1eebc60af0e93009179eeaadb7000be2b79 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Thu, 10 Jun 2010 14:09:51 -0700 Subject: [PATCH] ovsdb-idl: Drop unnecessary allocation from ovsdb_idl_txn_insert(). There's no need to allocate row->written ahead of time because the code that can use it allocates it on demand if row->written is NULL. --- lib/ovsdb-idl.c | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/ovsdb-idl.c b/lib/ovsdb-idl.c index 2c9b95f0d..aa2f2ce71 100644 --- a/lib/ovsdb-idl.c +++ b/lib/ovsdb-idl.c @@ -1517,7 +1517,6 @@ ovsdb_idl_txn_insert(struct ovsdb_idl_txn *txn, row->table = ovsdb_idl_table_from_class(txn->idl, class); row->new = xmalloc(class->n_columns * sizeof *row->new); - row->written = bitmap_allocate(class->n_columns); hmap_insert(&row->table->rows, &row->hmap_node, uuid_hash(&row->uuid)); hmap_insert(&txn->txn_rows, &row->txn_node, uuid_hash(&row->uuid)); return row; -- 2.43.0