[ovs-dev] [PATCH] lib: Remove unreachable JSONRPC case
Joe Stringer
joestringer at nicira.com
Tue Oct 22 17:03:08 UTC 2013
jsonrpc_session_recv() handles echo replies prior to this.
Found by inspection.
Signed-off-by: Joe Stringer <joestringer at nicira.com>
---
lib/ovsdb-idl.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/lib/ovsdb-idl.c b/lib/ovsdb-idl.c
index 4631291..3366523 100644
--- a/lib/ovsdb-idl.c
+++ b/lib/ovsdb-idl.c
@@ -332,9 +332,6 @@ ovsdb_idl_run(struct ovsdb_idl *idl)
&& !strcmp(msg->method, "stolen")) {
/* Someone else stole our lock. */
ovsdb_idl_parse_lock_notify(idl, msg->params, false);
- } else if (msg->type == JSONRPC_REPLY && msg->id->type == JSON_STRING
- && !strcmp(msg->id->u.string, "echo")) {
- /* Reply to our echo request. Ignore it. */
} else if ((msg->type == JSONRPC_ERROR
|| msg->type == JSONRPC_REPLY)
&& ovsdb_idl_txn_process_reply(idl, msg)) {
--
1.7.9.5
More information about the dev
mailing list