2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-22 01:51:26 +00:00

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>
This commit is contained in:
William Tu 2016-06-28 22:02:28 -07:00 committed by Ben Pfaff
parent ed46c52248
commit 43898d4c72

View File

@ -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);