diff options
author | William Tu <u9012063@gmail.com> | 2016-06-28 22:02:28 -0700 |
---|---|---|
committer | Ben Pfaff <blp@ovn.org> | 2016-07-02 21:30:07 -0700 |
commit | 43898d4c72219eb9c0d4e7ee5c421380251f080d (patch) | |
tree | 4227cde957ab26ce68e25cc414f3857ca7a7bd04 /ovsdb/replication.c | |
parent | ed46c52248ba3b31d43a729cc4883fc6661a7edb (diff) | |
download | openvswitch-43898d4c72219eb9c0d4e7ee5c421380251f080d.tar.gz |
ovsdb: Fix dead assignment reported by clang.
Clang reports variable 'error' never been used. Fix by
returning error when table_update->type != JSON_OBJECT.
Signed-off-by: William Tu <u9012063@gmail.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
Diffstat (limited to 'ovsdb/replication.c')
-rw-r--r-- | ovsdb/replication.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ovsdb/replication.c b/ovsdb/replication.c index 3d1bc332c..a267a3a00 100644 --- a/ovsdb/replication.c +++ b/ovsdb/replication.c @@ -468,8 +468,8 @@ process_table_update(struct json *table_update, const char *table_name, struct ovsdb_error *error; if (table_update->type != JSON_OBJECT) { - error = ovsdb_error("Not a JSON object", - "<table-update> for table is not object"); + return ovsdb_error("Not a JSON object", + "<table-update> for table is not object"); } table = ovsdb_get_table(database, table_name); |