From 8abf4148030d42825d4f76f4a3cf734dbc2bcd2b Mon Sep 17 00:00:00 2001
From: Viresh Kumar <viresh.kumar@linaro.org>
Date: Wed, 19 Nov 2014 17:25:00 +0530
Subject: [PATCH] greybus: operation: don't complete operation twice

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 | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/staging/greybus/operation.c b/drivers/staging/greybus/operation.c
index 520214bde878e..a2b27aeefb7fd 100644
--- a/drivers/staging/greybus/operation.c
+++ b/drivers/staging/greybus/operation.c
@@ -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);
 }
 
 /*
-- 
2.30.2