summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBen Pfaff <blp@ovn.org>2016-12-16 16:15:40 -0800
committerBen Pfaff <blp@ovn.org>2016-12-19 21:02:10 -0800
commitbf26aac5a45354a2c0a86f24fa0b2e96cd4b1dc3 (patch)
treeb754c5b333f398ea4b4841140da54484760f6af1 /lib
parent0df7150047f18f2601c5033a07eea66ef4528be8 (diff)
downloadopenvswitch-bf26aac5a45354a2c0a86f24fa0b2e96cd4b1dc3.tar.gz
ovsdb-idl: Drop write-only member from struct ovsdb_idl_condition.
The 'tc' member of struct ovsdb_idl_condition was written but never read, so remove it. Signed-off-by: Ben Pfaff <blp@ovn.org> Acked-by: Mickey Spiegel <mickeys.dev@gmail.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/ovsdb-idl-provider.h1
-rw-r--r--lib/ovsdb-idl.c9
2 files changed, 3 insertions, 7 deletions
diff --git a/lib/ovsdb-idl-provider.h b/lib/ovsdb-idl-provider.h
index 3104f2c77..1f5a49eaa 100644
--- a/lib/ovsdb-idl-provider.h
+++ b/lib/ovsdb-idl-provider.h
@@ -103,7 +103,6 @@ struct ovsdb_idl_table_class {
};
struct ovsdb_idl_condition {
- const struct ovsdb_idl_table_class *tc;
struct ovs_list clauses;
};
diff --git a/lib/ovsdb-idl.c b/lib/ovsdb-idl.c
index 8ce228de5..3974eb669 100644
--- a/lib/ovsdb-idl.c
+++ b/lib/ovsdb-idl.c
@@ -219,8 +219,7 @@ ovsdb_idl_table_from_class(const struct ovsdb_idl *,
const struct ovsdb_idl_table_class *);
static bool ovsdb_idl_track_is_set(struct ovsdb_idl_table *table);
static void ovsdb_idl_send_cond_change(struct ovsdb_idl *idl);
-static void ovsdb_idl_condition_init(struct ovsdb_idl_condition *cnd,
- const struct ovsdb_idl_table_class *tc);
+static void ovsdb_idl_condition_init(struct ovsdb_idl_condition *cnd);
/* Creates and returns a connection to database 'remote', which should be in a
* form acceptable to jsonrpc_session_open(). The connection will maintain an
@@ -279,7 +278,7 @@ ovsdb_idl_create(const char *remote, const struct ovsdb_idl_class *class,
= table->change_seqno[OVSDB_IDL_CHANGE_MODIFY]
= table->change_seqno[OVSDB_IDL_CHANGE_DELETE] = 0;
table->idl = idl;
- ovsdb_idl_condition_init(&table->condition, tc);
+ ovsdb_idl_condition_init(&table->condition);
table->cond_changed = false;
}
@@ -892,10 +891,8 @@ ovsdb_idl_condition_reset(struct ovsdb_idl *idl,
}
static void
-ovsdb_idl_condition_init(struct ovsdb_idl_condition *cnd,
- const struct ovsdb_idl_table_class *tc)
+ovsdb_idl_condition_init(struct ovsdb_idl_condition *cnd)
{
- cnd->tc = tc;
ovs_list_init(&cnd->clauses);
}