]> git.proxmox.com Git - mirror_ovs.git/commitdiff
lib: Remove unreachable JSONRPC case
authorJoe Stringer <joestringer@nicira.com>
Tue, 22 Oct 2013 17:03:08 +0000 (10:03 -0700)
committerBen Pfaff <blp@nicira.com>
Fri, 25 Oct 2013 19:24:42 +0000 (12:24 -0700)
jsonrpc_session_recv() handles echo replies prior to this.

Found by inspection.

Signed-off-by: Joe Stringer <joestringer@nicira.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
lib/ovsdb-idl.c

index 463129148dec2cc46b06cffb29395e24d0a964b0..3366523c2b503b3459fee0a9a8742e8584215e24 100644 (file)
@@ -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)) {