From 8abf4148030d42825d4f76f4a3cf734dbc2bcd2b Mon Sep 17 00:00:00 2001 From: Viresh Kumar Date: Wed, 19 Nov 2014 17:25:00 +0530 Subject: [PATCH] greybus: operation: don't complete operation twice Signed-off-by: Viresh Kumar Reviewed-by: Alex Elder Signed-off-by: Greg Kroah-Hartman --- 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 520214bde878..a2b27aeefb7f 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.39.5