greybus: operation: don't complete operation twice
authorViresh Kumar <viresh.kumar@linaro.org>
Wed, 19 Nov 2014 11:55:00 +0000 (17:25 +0530)
committerGreg Kroah-Hartman <greg@kroah.com>
Wed, 19 Nov 2014 18:44:14 +0000 (10:44 -0800)
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: Alex Elder <elder@linaro.org>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
drivers/staging/greybus/operation.c

index 520214b..a2b27ae 100644 (file)
@@ -176,14 +176,12 @@ static void gb_operation_request_handle(struct gb_operation *operation)
         */
        if (protocol->request_recv) {
                protocol->request_recv(header->type, operation);
-               goto out;
+               return;
        }
 
        gb_connection_err(operation->connection,
                "unexpected incoming request type 0x%02hhx\n", header->type);
        operation->result = GB_OP_PROTOCOL_BAD;
-out:
-       gb_operation_complete(operation);
 }
 
 /*