From: Joe Stringer Date: Tue, 22 Oct 2013 17:03:08 +0000 (-0700) Subject: lib: Remove unreachable JSONRPC case X-Git-Tag: sliver-openvswitch-2.0.90-1~7^2 X-Git-Url: http://git.onelab.eu/?p=sliver-openvswitch.git;a=commitdiff_plain;h=6647cb8ce75dfcb2bfd2b2c858eb789bd349687a 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 --- 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)) {