From: Ben Pfaff Date: Thu, 10 Jun 2010 21:09:51 +0000 (-0700) Subject: ovsdb-idl: Drop unnecessary allocation from ovsdb_idl_txn_insert(). X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cde3f1eebc60af0e93009179eeaadb7000be2b79;p=openvswitch 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. --- diff --git a/lib/ovsdb-idl.c b/lib/ovsdb-idl.c index 2c9b95f0..aa2f2ce7 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;