From 6647cb8ce75dfcb2bfd2b2c858eb789bd349687a Mon Sep 17 00:00:00 2001 From: Joe Stringer Date: Tue, 22 Oct 2013 10:03:08 -0700 Subject: [PATCH] lib: Remove unreachable JSONRPC case jsonrpc_session_recv() handles echo replies prior to this. Found by inspection. Signed-off-by: Joe Stringer Signed-off-by: Ben Pfaff --- lib/ovsdb-idl.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/ovsdb-idl.c b/lib/ovsdb-idl.c index 463129148..3366523c2 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)) { -- 2.47.0